Skip to content

Commit e93ec29

Browse files
authored
Merge pull request #148 from bopen/uv-actions
Port integration-tests to uv
2 parents f566216 + 0c224b8 commit e93ec29

File tree

1 file changed

+33
-24
lines changed

1 file changed

+33
-24
lines changed

.github/workflows/on-push.yml

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -141,41 +141,50 @@ 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
157+
158+
- name: Install uv and set the python version
159+
uses: astral-sh/setup-uv@v5
158160
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
161+
python-version: ${{ matrix.python-version }}
162+
163+
- name: Install the project
164+
run: uv sync --locked --dev
165+
166+
- name: Run tests
167+
run: uv run pytest -vv
168+
169+
minver-tests:
170+
needs: [unit-tests]
171+
if: |
172+
success() && true
173+
runs-on: ubuntu-latest
174+
175+
steps:
176+
- uses: actions/checkout@v4
177+
178+
- name: Install uv and set the python version
179+
uses: astral-sh/setup-uv@v5
165180
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 .
181+
python-version: "3.10"
182+
183+
- name: Install the project
184+
run: uv sync --dev --resolution lowest-direct
185+
176186
- name: Run tests
177-
run: |
178-
make unit-tests COV_REPORT=xml
187+
run: uv run pytest -vv
179188

180189
distribution:
181190
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)