Repository navigation
66 lines (61 loc) · 1.79 KB
/
Copy pathlint.yml
File metadata and controls
66 lines (61 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Lint
permissions:
contents: read
concurrency:
group: lint-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
tags-ignore:
- "*"
branches: ["main"]
pull_request:
branches: ["main"]
workflow_call:
workflow_dispatch:
inputs:
debug:
description: "Open ssh debug session."
required: true
default: false
type: boolean
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
# run static analysis on bleeding and trailing edges
python-version: ["3.11", "3.15"]
env:
TEST_PYTHON_VERSION: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
id: sp
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2
with:
enable-cache: false
- name: Install Just
uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3
with:
just-version: "1.58.0"
- name: Install Emacs
if: ${{ github.event.inputs.debug == 'true' }}
run: |
sudo apt install emacs
- name: Setup tmate session
if: ${{ github.event.inputs.debug == 'true' }}
uses: mxschmitt/action-tmate@35b54afac29c97fb54faba5b513f8fbd1882f113
timeout-minutes: 60
- name: Run Static Analysis
env:
PYTHON_PATH: ${{ steps.sp.outputs.python-path }}
run: |
just check -p "$PYTHON_PATH"