-
Notifications
You must be signed in to change notification settings - Fork 78
74 lines (70 loc) · 2.1 KB
/
Copy pathtriage-ci.yaml
File metadata and controls
74 lines (70 loc) · 2.1 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
67
68
69
70
71
72
73
74
name: jax-toolbox-triage pure-Python CI
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
on:
pull_request:
types:
- opened
- reopened
- ready_for_review
- synchronize
paths-ignore:
- '**.md'
push:
branches:
- main
env:
TRIAGE_PYTHON_FILES: .github/triage
jobs:
mypy:
runs-on: ubuntu-24.04
steps:
- name: Check out the repository under ${GITHUB_WORKSPACE}
uses: actions/checkout@v6
with:
sparse-checkout: .github/triage
- name: Install the latest version of uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
working-directory: .github/triage
- name: "Run mypy checks"
working-directory: .github/triage
run: uv run mypy .
pytest:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.8", "3.14"]
fail-fast: false
steps:
- name: Check out the repository under ${GITHUB_WORKSPACE}
uses: actions/checkout@v6
with:
sparse-checkout: .github/triage
- name: Install the latest version of uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
python-version: '${{ matrix.python-version }}'
working-directory: .github/triage
- name: "Run tests"
working-directory: .github/triage
run: uv run python -m pytest
ruff:
runs-on: ubuntu-24.04
strategy:
matrix:
tool: ["check", "format"]
fail-fast: false
steps:
- name: Check out the repository under ${GITHUB_WORKSPACE}
uses: actions/checkout@v6
with:
sparse-checkout: .github/triage
- name: Install the latest version of uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
working-directory: .github/triage
- name: "Run ruff ${{ matrix.tool }}"
working-directory: .github/triage
run: uv run ruff ${{ matrix.tool }}