Skip to content

Commit 9d6f6f8

Browse files
committed
Replace Pixi setup with Conda setup in GitHub Actions workflow and add dependency installation and test execution steps.
1 parent 49217b9 commit 9d6f6f8

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

.github/workflows/test.yaml

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,38 @@ jobs:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
1717

18-
- uses: prefix-dev/[email protected]
18+
- name: Setup Conda
19+
uses: conda-incubator/setup-miniconda@v3
1920
with:
20-
pixi-version: v0.25.0
21-
cache: true
21+
miniforge-variant: Mambaforge
22+
miniforge-version: latest
23+
activate-environment: test_env
24+
use-mamba: true
25+
python-version: "3.9"
2226

23-
- run: pixi run test
27+
- name: Cache conda env
28+
uses: actions/cache@v3
29+
with:
30+
path: |
31+
/usr/share/miniconda/envs/test_env
32+
~/.conda/pkgs
33+
key: conda-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
34+
restore-keys: |
35+
conda-${{ runner.os }}-
36+
37+
- name: Install dependencies
38+
shell: bash -l {0}
39+
run: |
40+
# Install dependencies from pyproject.toml
41+
mamba install -y -c conda-forge \
42+
tomlkit \
43+
requests \
44+
tqdm \
45+
pandas \
46+
pytest \
47+
make
48+
49+
- name: Run tests
50+
shell: bash -l {0}
51+
run: |
52+
make test

0 commit comments

Comments
 (0)