Skip to content

Commit bb1d833

Browse files
authored
CI: Use uv for faster dependency installation (#564)
* CI: Use uv for faster dependency installation * Use uvx for tox
1 parent 2164e9d commit bb1d833

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,13 @@ jobs:
4747
- name: Set TOX_ENV
4848
run: echo "TOX_ENV=py$(echo ${{ matrix.python-version }} | tr -d .)-django$(echo ${{ matrix.django-version }} | tr -d .)-sqlite" >> $GITHUB_ENV
4949

50-
- name: Set up Python ${{ matrix.python-version }}
51-
uses: actions/setup-python@v6
50+
- name: Install uv
51+
uses: astral-sh/setup-uv@v7
5252
with:
5353
python-version: ${{ matrix.python-version }}
54-
allow-prereleases: true
55-
cache: pip
56-
57-
- name: Install dependencies
58-
run: |
59-
python -m pip install --upgrade pip setuptools wheel tox
6054

6155
- name: Run tox targets for ${{ matrix.python-version }}
62-
run: tox run -e ${{ env.TOX_ENV }}
56+
run: uvx tox run -e ${{ env.TOX_ENV }}
6357

6458
- name: Upload coverage data
6559
uses: actions/upload-artifact@v6
@@ -118,19 +112,13 @@ jobs:
118112
psql template1 -c "CREATE EXTENSION hstore;" -U postgres -h localhost -p 5432
119113
psql template1 -c "CREATE EXTENSION postgis;" -U postgres -h localhost -p 5432
120114
121-
- name: Set up Python ${{ matrix.python-version }}
122-
uses: actions/setup-python@v6
115+
- name: Install uv
116+
uses: astral-sh/setup-uv@v7
123117
with:
124118
python-version: ${{ matrix.python-version }}
125-
allow-prereleases: true
126-
cache: pip
127-
128-
- name: Install dependencies
129-
run: |
130-
python -m pip install --upgrade pip setuptools wheel tox
131119

132120
- name: Run tox targets for ${{ matrix.python-version }}
133-
run: tox run -e ${{ env.TOX_ENV }}
121+
run: uvx tox run -e ${{ env.TOX_ENV }}
134122

135123
- name: Upload coverage data
136124
uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)