Skip to content

Commit 22c982a

Browse files
committed
Try port integration-tests to uv
1 parent cc5aa6f commit 22c982a

File tree

1 file changed

+14
-25
lines changed

1 file changed

+14
-25
lines changed

.github/workflows/on-push.yml

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -141,41 +141,30 @@ jobs:
141141
make docs-build
142142
143143
integration-tests:
144-
needs: [combine-environments, unit-tests]
144+
needs: [unit-tests]
145145
if: |
146146
success() && true
147147
runs-on: ubuntu-latest
148-
149148
strategy:
150149
matrix:
151-
include:
152-
- python-version: '3.10'
153-
extra: -integration
150+
python-version:
151+
- "3.10"
152+
- "3.11"
153+
- "3.12"
154154

155155
steps:
156156
- uses: actions/checkout@v4
157-
- uses: actions/download-artifact@v4
158-
with:
159-
name: combined-environments
160-
path: ci
161-
- name: Get current date
162-
id: date
163-
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
164-
- uses: mamba-org/setup-micromamba@v2
157+
158+
- name: Install uv and set the python version
159+
uses: astral-sh/setup-uv@v5
165160
with:
166-
environment-file: ci/combined-environment${{ matrix.extra }}.yml
167-
environment-name: DEVELOP${{ matrix.extra }}
168-
cache-environment: true
169-
cache-environment-key: environment-${{ steps.date.outputs.date }}
170-
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
171-
create-args: >-
172-
python=${{ matrix.python-version }}
173-
- name: Install package
174-
run: |
175-
python -m pip install --no-deps -e .
161+
python-version: ${{ matrix.python-version }}
162+
163+
- name: Install the project
164+
run: uv sync --locked --dev
165+
176166
- name: Run tests
177-
run: |
178-
make unit-tests COV_REPORT=xml
167+
run: uv run pytest -vv
179168

180169
distribution:
181170
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)