File tree Expand file tree Collapse file tree 6 files changed +1254
-2356
lines changed
Expand file tree Collapse file tree 6 files changed +1254
-2356
lines changed Original file line number Diff line number Diff line change 11name : Tests
22
3- on : [push, pull_request]
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
48
59jobs :
610 ruff :
@@ -22,25 +26,15 @@ jobs:
2226 - " 3.12"
2327 - " 3.13"
2428 steps :
25- - uses : actions/checkout@v4
26- - name : Set up Python ${{ matrix.python-version }}
27- uses : actions/setup-python@v5
28- with :
29- python-version : ${{ matrix.python-version }}
30- - name : Get full python version
31- id : full-python-version
32- run : |
33- echo version=$(python -c "import sys, platform; print('.'.join(str(v) for v in sys.version_info[:3]) + '_' + platform.machine())") >> $GITHUB_OUTPUT
34- - name : Set up cache
35- uses : actions/cache@v4
36- with :
37- path : .venv
38- key : ${{ runner.os }}-venv-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
39- - name : Install and configure Poetry
40- run : |
41- pip install poetry
42- poetry config virtualenvs.in-project true
43- - name : Install dependencies
44- run : poetry install --all-extras
45- - name : Pytest
46- run : make test
29+ - uses : actions/checkout@v4
30+ - name : Set up Python ${{ matrix.python-version }}
31+ uses : actions/setup-python@v5
32+ with :
33+ python-version : ${{ matrix.python-version }}
34+ - name : Install the latest version of uv
35+ uses : astral-sh/setup-uv@v5
36+ with :
37+ version : latest
38+ enable-cache : true
39+ - name : Run pytest
40+ run : uv run make test
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ __pycache__
88. \# *
99build
1010dist
11+ * .egg-info
Original file line number Diff line number Diff line change 11all :
22
33test :
4- poetry run pytest --ruff --ruff-format
4+ uv run pytest --ruff --ruff-format
55
66lint :
7- poetry run ruff check .
7+ uv run ruff check .
88
99reformat :
10- poetry run ruff check --select I --fix .
11- poetry run ruff format .
10+ uv run ruff check --select I --fix .
11+ uv run ruff format .
1212
1313clean :
1414
1515realclean : clean
16- poetry env remove --all
16+ rm -fr .venv
You can’t perform that action at this time.
0 commit comments