File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 lint :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v2
12- - name : Set up Python
13- uses : actions/setup-python@v2
14- with :
15- python-version : " 3.11"
16- - name : Install dependencies
17- run : |
18- python -m pip install --upgrade pip
19- pip install flake8 flake8-docstrings
20- - name : Lint with flake8
21- run : flake8 .
11+ - uses : actions/checkout@v5
12+ - uses : astral-sh/ruff-action@v3
13+
2214
2315 test :
2416 runs-on : ubuntu-latest
2517 steps :
26- - uses : actions/checkout@v2
27- - name : Set up Python
28- uses : actions/setup-python@v2
29- with :
30- python-version : " 3.11"
31- - name : Install dependencies
32- run : |
33- python -m pip install --upgrade pip
34- pip install . --user
35- - name : Test using unittests
36- run : python -m unittest --failfast
18+ - uses : actions/checkout@v5
19+
20+ - name : Install uv
21+ uses : astral-sh/setup-uv@v6
22+ with :
23+ version : " 0.8.22"
24+
25+ - name : Set up Python
26+ uses : actions/setup-python@v5
27+ with :
28+ python-version-file : " .python-version"
29+
30+ - name : Install the project
31+ run : uv sync --locked --all-extras --dev
32+
33+ - name : Run tests
34+ run : uv run python -m unittest --failfast
You can’t perform that action at this time.
0 commit comments