Skip to content

Commit ffe689c

Browse files
committed
Update workflow file to use uv
1 parent 582768a commit ffe689c

File tree

3 files changed

+14
-43
lines changed

3 files changed

+14
-43
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,17 @@ jobs:
1313
uses: actions/setup-python@v4
1414
# see details (matrix, python-version, python-version-file, etc.)
1515
# https://github.com/actions/setup-python
16-
- name: Install poetry
17-
uses: abatilo/actions-poetry@v2
18-
19-
- name: Setup a local virtual environment (if no poetry.toml file)
20-
run: |
21-
poetry config virtualenvs.create true --local
22-
poetry config virtualenvs.in-project true --local
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v4
2318

2419
- uses: actions/cache@v3
2520
name: Define a cache for the virtual environment based on the dependencies lock file
2621
with:
2722
path: ./.venv
28-
key: venv-${{ hashFiles('poetry.lock') }}
23+
key: venv-${{ hashFiles('uv.lock') }}
2924

3025
- name: Install dependencies
31-
run: poetry install
26+
run: uv sync
3227

3328
- name: Run tests
34-
run: poetry run pytest -v
29+
run: uv run pytest -v

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies = [
2222
"aiohttp>=3.10.5,<4",
2323
]
2424

25-
[project.optional-dependencies]
25+
[dependency-groups]
2626
dev = [
2727
"pytest>=8.3.2,<9",
2828
"pytest-asyncio>=0.24.0,<0.25",

uv.lock

Lines changed: 8 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)