File tree Expand file tree Collapse file tree 6 files changed +127
-14
lines changed
Expand file tree Collapse file tree 6 files changed +127
-14
lines changed Original file line number Diff line number Diff line change 1+ name : " Set up uv and python"
2+ inputs :
3+ group :
4+ description : " uv dependency group to install"
5+ required : false
6+ default : " dev"
7+ runs :
8+ using : " composite"
9+ steps :
10+ - uses : actions/setup-python@v5
11+ with :
12+ python-version : " 3.13"
13+
14+ - uses : astral-sh/setup-uv@v7
15+
16+ - name : Sync deps
17+ shell : bash
18+ run : uv sync --group ${{ inputs.group }} --frozen
Original file line number Diff line number Diff line change 1+ name : CI - Build docs
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ paths :
7+ - " docs/**"
8+ - " **/*.py"
9+ - " .github/workflows/build-docs.yml"
10+ pull_request :
11+ paths :
12+ - " docs/**"
13+ - " .github/workflows/build-docs.yml"
14+
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.ref }}
17+ cancel-in-progress : true
18+
19+ jobs :
20+ docs :
21+ name : Build docs
22+ runs-on : ubuntu-latest
23+ steps :
24+ - uses : actions/checkout@v4
25+
26+ - name : Setup
27+ uses : ./.github/actions/setup
28+
29+ - name : Set up just
30+ uses : extractions/setup-just@v3
31+
32+ - name : Build docs
33+ run : just docs
34+
35+ doctest :
36+ name : Run doctests
37+ runs-on : ubuntu-latest
38+ steps :
39+ - uses : actions/checkout@v4
40+
41+ - name : Setup
42+ uses : ./.github/actions/setup
43+ with :
44+ group : docs
45+
46+ - name : Set up just
47+ uses : extractions/setup-just@v3
48+
49+ - name : Run doctests
50+ run : just doctest
Original file line number Diff line number Diff line change 2424 name : Ruff (lint + format)
2525 runs-on : ubuntu-latest
2626 steps :
27- - uses : actions/checkout@v4
27+ - uses : actions/checkout@v6
2828
2929 - name : Ruff check
3030 uses : astral-sh/ruff-action@v3
@@ -40,19 +40,10 @@ jobs:
4040 name : Typecheck (pyrefly)
4141 runs-on : ubuntu-latest
4242 steps :
43- - uses : actions/checkout@v4
43+ - uses : actions/checkout@v6
4444
45- - name : Set up Python
46- uses : actions/setup-python@v5
47- with :
48- python-version : " 3.13"
49- cache : " pip"
50-
51- - name : Install uv
52- run : python -m pip install -U uv
53-
54- - name : Sync typecheck deps (locked)
55- run : uv sync --dev --frozen
45+ - name : Setup
46+ uses : ./.github/actions/setup
5647
5748 - name : Run pyrefly
5849 run : uv run pyrefly check
Original file line number Diff line number Diff line change 1+ name : CI - Clear notebook outputs
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ paths :
7+ - " **/*.ipynb"
8+ - " .github/workflows/clear-notebooks.yml"
9+ pull_request :
10+ paths :
11+ - " **/*.ipynb"
12+ - " .github/workflows/clear-notebooks.yml"
13+
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.ref }}
16+ cancel-in-progress : true
17+
18+ jobs :
19+ nbconvert :
20+ name : Clear notebooks
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v6
24+
25+ - name : Setup
26+ uses : ./.github/actions/setup
27+
28+ - name : nbconvert
29+ run : uv run pre-commit run notebook-clear-outputs --all-files --show-diff-on-failure
Original file line number Diff line number Diff line change 1+ name : Run unit tests
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ paths :
7+ - " **/*.py"
8+ - " .github/workflows/unit-tests.yml"
9+
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : true
13+
14+ jobs :
15+ nbconvert :
16+ name : Run unit tests
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v6
20+
21+ - name : Setup
22+ uses : ./.github/actions/setup
23+
24+ - name : pytest
25+ run : uv run pytest
Original file line number Diff line number Diff line change 2222 pass_filenames : false
2323 always_run : true
2424
25- - id : pytest-check
25+ - id : pytest
2626 name : pytest (all tests)
2727 entry : uv run pytest
2828 language : system
You can’t perform that action at this time.
0 commit comments