@@ -11,25 +11,24 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v4
14- - name : Install poetry
15- run : pipx install poetry
16- - uses : actions /setup-python @v5
14+
15+ - name : Setup uv
16+ uses : astral-sh /setup-uv @v5
1717 with :
18- python-version-file : pyproject.toml
19- cache : poetry
20- - name : Install dependencies
21- run : |
22- poetry install
18+ enable-cache : true
19+ pyproject-file : pyproject.toml
20+
2321 - name : Run tests
2422 id : run-tests
2523 run : >
26- poetry run pytest \
24+ uv run --frozen pytest \
2725 --junitxml=pytest.xml \
2826 --cov-report=term-missing:skip-covered \
2927 --cov-report=xml:coverage.xml \
3028 --cov=src tests \
3129 --log-level=DEBUG \
3230 --verbose
31+
3332 - name : Upload coverage to Codecov
3433 uses : codecov/codecov-action@v4
3534 with :
@@ -40,30 +39,28 @@ jobs:
4039 runs-on : ubuntu-latest
4140 steps :
4241 - uses : actions/checkout@v4
43- - name : Install poetry
44- run : pipx install poetry
45- - uses : actions /setup-python @v5
42+
43+ - name : Setup uv
44+ uses : astral-sh /setup-uv @v5
4645 with :
47- python-version-file : pyproject.toml
48- cache : poetry
49- - name : Install dependencies
50- run : |
51- poetry install
46+ enable-cache : true
47+ pyproject-file : pyproject.toml
48+
5249 - name : Ruff format
53- run : poetry run ruff format --check
50+ run : uv run ruff format --check
51+
5452 - name : Ruff check
55- run : poetry run ruff check
53+ run : uv run ruff check
5654
5755 mypy :
5856 runs-on : ubuntu-latest
5957 steps :
6058 - uses : actions/checkout@v4
61- - name : Install poetry
62- run : pipx install poetry
63- - uses : actions /setup-python @v5
59+
60+ - name : Setup uv
61+ uses : astral-sh /setup-uv @v5
6462 with :
65- python-version : ' 3.11'
66- cache : poetry
67- - run : |
68- poetry install
69- poetry run mypy .
63+ enable-cache : true
64+ pyproject-file : pyproject.toml
65+
66+ - run : uv run mypy .
0 commit comments