Skip to content

Commit 348e6d7

Browse files
committed
Try replacing conda ci with pixi ci
1 parent 84f7fb6 commit 348e6d7

File tree

1 file changed

+10
-37
lines changed

1 file changed

+10
-37
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,18 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11-
- name: Download test data
12-
run: |
13-
aws s3 cp s3://deant-data-public-dev/persistent/repositories/dem-handler/test-data/ tests/ --recursive --no-sign-request
14-
- name: Set up micromamba environment
15-
uses: mamba-org/setup-micromamba@v2.0.3
16-
with:
17-
generate-run-shell: true
18-
environment-file: environment.yaml
19-
- name: Check packages
20-
shell: micromamba-shell {0}
21-
run: |
22-
pytest --version
23-
- name: Install dem-handler package
24-
shell: micromamba-shell {0}
25-
run: |
26-
pip install .
2711
- name: Run tests
28-
shell: micromamba-shell {0}
29-
run: |
30-
pytest tests/
12+
uses: prefix-dev/setup-pixi@v0.8.3
13+
with:
14+
pixi-version: v0.42.1
15+
cache: true
16+
auth-host: prefix.dev
17+
auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
18+
run: pixi run test
3119
- name: Run Coverage
32-
shell: micromamba-shell {0}
3320
run: |
34-
coverage run -m pytest tests/
35-
coverage xml
21+
pixi run -e tests coverage run -m pytest tests/
22+
pixi run coverage xml
3623
- name: Code Coverage Summary Report
3724
uses: irongut/CodeCoverageSummary@v1.3.0
3825
with:
@@ -46,18 +33,4 @@ jobs:
4633
- name: Lint
4734
uses: psf/black@stable
4835
with:
49-
options: "--check --verbose"
50-
run-tests-pixi:
51-
if: ${{ always() }}
52-
needs: run-tests
53-
runs-on: ubuntu-latest
54-
steps:
55-
- uses: actions/checkout@v4
56-
- name: Run tests with Pixi
57-
uses: prefix-dev/setup-pixi@v0.8.3
58-
with:
59-
pixi-version: v0.42.1
60-
cache: true
61-
auth-host: prefix.dev
62-
auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
63-
run: pixi run test
36+
options: "--check --verbose"

0 commit comments

Comments
 (0)