1010 - " tests/**"
1111 - " pyproject.toml"
1212 - " uv.lock"
13- - " justfile"
1413 - " nix/**"
1514 - " flake.nix"
1615 - " flake.lock"
@@ -21,19 +20,24 @@ concurrency:
2120 cancel-in-progress : true
2221
2322jobs :
24- build-test :
23+ check-code :
2524 # Ubicloud managed runner
2625 runs-on : ubicloud-standard-2
2726
2827 strategy :
2928 fail-fast : false
3029 matrix :
31- python-version : ["3.10", "3.13 "]
30+ python-version : ["3.10", "3.12 "]
3231
3332 steps :
3433 - name : Checkout
3534 uses : actions/checkout@v4
3635
36+ - name : " Set up Python"
37+ uses : actions/setup-python@v5
38+ with :
39+ python-version : ${{ matrix.python-version }}
40+
3741 - name : Setup uv (with caching)
3842 uses : astral-sh/setup-uv@v6
3943 with :
@@ -43,25 +47,20 @@ jobs:
4347 - name : Install Python ${{ matrix.python-version }}
4448 run : uv python install ${{ matrix.python-version }}
4549
46- - name : Install just
47- run : |
48- sudo apt-get update
49- sudo apt-get install -y just
50-
5150 - name : Sync dependencies
5251 run : uv sync
5352
54- - name : Lint & Format (via just)
55- run : just lint
56-
57- - name : Typecheck (via just)
58- run : just typecheck
53+ - name : Lint & Format
54+ run : |
55+ uv run ruff format --check ./src
56+ uv run ruff check ./src
57+ uv run basedpyright ./src
5958
60- - name : Test (via just)
61- run : just test
59+ - name : Test
60+ run : uv run pytest -q
6261
63- - name : Coverage (via just)
64- run : just cov
62+ - name : Coverage
63+ run : uv run pytest -- cov=torusdk --cov-report=term-missing --cov-report=xml
6564
6665 - name : Upload coverage XML
6766 uses : actions/upload-artifact@v4
7170
7271 - name : Enforce Towncrier fragment on PRs
7372 if : ${{ github.event_name == 'pull_request' }}
74- run : just news- check
73+ run : uv run towncrier check --compare-with origin/main
7574
7675 - name : Build package
77- run : just build
78-
79- # Separate job for Nix-specific checks
80- nix-checks :
81- runs-on : ubicloud-standard-2
82-
83- steps :
84- - name : Checkout
85- uses : actions/checkout@v4
86-
87- - name : Install Nix
88- uses : DeterminateSystems/nix-installer-action@main
89-
90- - name : Check Nix flake
91- run : nix flake check
76+ run : uv build
0 commit comments