File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -78,21 +78,25 @@ jobs:
78
78
- name : Checkout
79
79
uses : actions/checkout@v4
80
80
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
83
84
with :
84
- python-version : ${{ matrix.python }}
85
+ version : " latest"
86
+ enable-cache : true
87
+ cache-dependency-glob : ' **/pyproject.toml'
85
88
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 }}
90
92
91
93
- 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 }}
93
97
94
98
- name : Test
95
- run : pytest tests
99
+ run : uv run pytest tests
96
100
env :
97
101
PGPASSWORD : postgres
98
102
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ docs = [
100
100
101
101
102
102
[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 "
104
104
testpaths = [" tests" ]
105
105
python_files = " test_*.py"
106
106
You can’t perform that action at this time.
0 commit comments