@@ -2,81 +2,61 @@ name: CI Checks
22
33on : [push]
44
5+ concurrency :
6+ group : ${{ github.workflow }}-${{ github.ref }}
7+ cancel-in-progress : true
8+
59jobs :
610 autoformat :
711 runs-on : ubuntu-latest
8- strategy :
9- matrix :
10- python-version : ["3.10"]
1112 steps :
1213 - uses : actions/checkout@v4
1314 - name : Install uv
1415 uses : astral-sh/setup-uv@v7
15- with :
16- enable-cache : true
17- cache-dependency-glob : " uv.lock"
18- - name : Set up Python ${{ matrix.python-version }}
19- run : uv python install ${{ matrix.python-version }}
20- - name : Install the project
21- run : uv sync --frozen --extra develop
2216 - name : Run Ruff format (check)
23- run : uv run --no-sync ruff format --check .
17+ run : uvx ruff format --check .
18+
2419 linting :
2520 runs-on : ubuntu-latest
26- strategy :
27- matrix :
28- python-version : ["3.10"]
2921 steps :
30- - uses : actions/checkout@v4
31- - name : Install uv
32- uses : astral-sh/setup-uv@v7
33- with :
34- enable-cache : true
35- cache-dependency-glob : " uv.lock"
36- - name : Set up Python ${{ matrix.python-version }}
37- run : uv python install ${{ matrix.python-version }}
38- - name : Install the project
39- run : uv sync --frozen --extra develop
40- - name : Ruff check
41- run : uv run --no-sync ruff check .
22+ - uses : actions/checkout@v4
23+ - name : Install uv
24+ uses : astral-sh/setup-uv@v7
25+ - name : Ruff check
26+ run : uvx ruff check .
27+
4228 static-type-checking :
4329 runs-on : ubuntu-latest
44- strategy :
45- matrix :
46- python-version : ["3.10"]
4730 steps :
48- - uses : actions/checkout@v4
49- - name : Install uv
50- uses : astral-sh/setup-uv@v7
51- with :
52- enable-cache : true
53- cache-dependency-glob : " uv.lock"
54- - name : Set up Python ${{ matrix.python-version }}
55- run : uv python install ${{ matrix.python-version }}
56- - name : Install the project
57- run : uv sync --frozen --extra develop
58- - name : ty check
59- run : uv run --no-sync ty check
31+ - uses : actions/checkout@v4
32+ - name : Install uv
33+ uses : astral-sh/setup-uv@v7
34+ with :
35+ enable-cache : true
36+ cache-dependency-glob : " uv.lock"
37+ - name : Install Python
38+ run : uv python install
39+ - name : Install the project
40+ run : uv sync --frozen --extra develop
41+ - name : ty check
42+ run : uv run --no-sync ty check
43+
6044 unit-tests :
6145 runs-on : ubuntu-latest
62- strategy :
63- matrix :
64- python-version : ["3.10"]
6546 steps :
66- - name : Install LAPACK and BLAS
67- run : |
68- sudo apt-get update
69- sudo apt-get install -y liblapack-dev libblas-dev
70- - uses : actions/checkout@v4
71- - name : Install uv
72- uses : astral-sh/setup-uv@v7
73- with :
74- enable-cache : true
75- cache-dependency-glob : " uv.lock"
76- - name : Set up Python ${{ matrix.python-version }}
77- run : uv python install ${{ matrix.python-version }}
78- - name : Install the project
79- run : uv sync --frozen --extra develop
80- - name : Pytest
81- run : |
82- uv run --no-sync pytest tests/
47+ - uses : actions/checkout@v4
48+ - name : Install LAPACK and BLAS
49+ run : |
50+ sudo apt-get update
51+ sudo apt-get install -y liblapack-dev libblas-dev
52+ - name : Install uv
53+ uses : astral-sh/setup-uv@v7
54+ with :
55+ enable-cache : true
56+ cache-dependency-glob : " uv.lock"
57+ - name : Install Python
58+ run : uv python install
59+ - name : Install the project
60+ run : uv sync --frozen --extra develop
61+ - name : Pytest
62+ run : uv run --no-sync pytest tests/
0 commit comments