@@ -2,38 +2,34 @@ name: Build and test
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- branches : [ main ]
7+ branches : [main]
88
99jobs :
1010 lint :
1111 runs-on : ubuntu-latest
1212 strategy :
1313 matrix :
14- python-version : [ ' 3.11' ]
14+ python-version : [" 3.11" ]
1515 steps :
1616 - uses : actions/checkout@v4
17- - name : Set up Python ${{ matrix.python-version }}
18- uses : actions/setup-python@v5
19- with :
20- python-version : ${{ matrix.python-version }}
2117 - name : Install uv
22- uses : astral-sh/setup-uv@v5
18+ uses : astral-sh/setup-uv@v6
2319 with :
20+ python-version : ${{ matrix.python-version }}
2421 enable-cache : true
25- - name : Create virtual environment
26- run : uv venv
27- - name : Install lint dependencies
28- run : uv pip install tox
22+ cache-dependency-glob : " uv.lock"
23+ - name : Install dependencies
24+ run : uv sync --dev --locked
2925 - name : Check code quality with flake8
3026 run : uv run tox -e flake8
3127
3228 test :
3329 runs-on : ubuntu-latest
3430 strategy :
3531 matrix :
36- python-version : [ ' 3.11' ]
32+ python-version : [" 3.11" ]
3733
3834 steps :
3935
@@ -43,30 +39,21 @@ jobs:
4339 - name : Check out repository
4440 uses : actions/checkout@v4
4541
46- - name : Set up Python ${{ matrix.python-version }}
47- uses : actions/setup-python@v5
48- with :
49- python-version : ${{ matrix.python-version }}
50-
5142 # ----------------------------------------------
5243 # install uv
5344 # ----------------------------------------------
5445 - name : Install uv
55- uses : astral-sh/setup-uv@v5
46+ uses : astral-sh/setup-uv@v6
5647 with :
48+ python-version : ${{ matrix.python-version }}
5749 enable-cache : true
58-
59- # ----------------------------------------------
60- # create virtualenv
61- # ----------------------------------------------
62- - name : Create virtual environment
63- run : uv venv
50+ cache-dependency-glob : " uv.lock"
6451
6552 # ----------------------------------------------
6653 # install dependencies
6754 # ----------------------------------------------
6855 - name : Install dependencies
69- run : uv pip install .
56+ run : uv sync --dev --locked
7057
7158 # ----------------------------------------------
7259 # run test suite
0 commit comments