Skip to content

Commit 9961209

Browse files
committed
Updated Github actions to use uv
1 parent fe925fe commit 9961209

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/python.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,24 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10+
1011
- uses: actions/setup-python@v5
1112
with:
1213
python-version: "3.10"
13-
- name: Install dependencies
14-
run: |
15-
python -m pip install --upgrade pip setuptools wheel poetry
16-
poetry install
14+
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v6
17+
18+
- name: Install the project
19+
run: uv sync --locked --all-extras --all-groups
20+
1721
- name: Test with pytest
18-
run: poetry run pytest tests --cov=sqlorm --cov-report=xml
22+
run: uv run pytest tests --cov=sqlorm --cov-report=xml
23+
1924
- name: Lint with Ruff
20-
run: poetry run ruff check
21-
- name: Upload coverage reports to Codecov
25+
run: uv run ruff check
26+
27+
- name: Upload coverage reports to Codecov
2228
uses: codecov/[email protected]
2329
env:
2430
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)