Skip to content

Commit 49d7f40

Browse files
committed
Tweaks
1 parent 6df31fc commit 49d7f40

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/continuous-deployment.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,25 @@ jobs:
7878
- name: Checkout
7979
uses: actions/checkout@v4
8080

81-
- name: Setup Python
82-
uses: actions/setup-python@v5
81+
- id: install-uv
82+
name: Install uv
83+
uses: astral-sh/setup-uv@v6
8384
with:
84-
python-version: ${{ matrix.python }}
85+
version: "latest"
86+
enable-cache: true
87+
cache-dependency-glob: '**/pyproject.toml'
8588

86-
- name: Upgrade pip
87-
run: |
88-
python -m ensurepip --upgrade
89-
pip install setuptools wheel --upgrade
89+
- id: install-python
90+
name: Install Python
91+
run: uv python install ${{ matrix.python }}
9092

9193
- name: Install Python dependencies
92-
run: pip install ${{ matrix.psycopg }} django==${{ matrix.django }} mock pytest-django
94+
run: |
95+
uv sync --extra dev --python ${{ matrix.python }}
96+
uv pip install ${{ matrix.psycopg }} django==${{ matrix.django }}
9397
9498
- name: Test
95-
run: pytest tests
99+
run: uv run pytest tests
96100
env:
97101
PGPASSWORD: postgres
98102

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ docs = [
100100

101101

102102
[tool.pytest.ini_options]
103-
addopts = "-p no:warnings --cov=postgres_copy --cov-branch -cov-report=term-missing:skip-covered --cov-context=test"
103+
addopts = "-p no:warnings --cov=postgres_copy --cov-branch -cov-report=term-missing:skip-covered --cov-context=tests"
104104
testpaths = ["tests"]
105105
python_files = "test_*.py"
106106

0 commit comments

Comments
 (0)