Skip to content

Commit 3e8d683

Browse files
committed
install mpebia env more efficiently in pipeline
1 parent a5314e0 commit 3e8d683

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/pipeline.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ jobs:
2626
with:
2727
submodules: True
2828

29-
- name: Set up Python
30-
uses: actions/setup-python@v5
31-
with:
32-
python-version: "3.11"
33-
34-
- name: Install dependencies
29+
- uses: conda-incubator/setup-miniconda@v3
30+
- name: Set up Python environment
31+
id: environment
32+
shell: bash -l {0}
33+
env:
34+
PYTHON_PACKAGE_MANAGER: conda
3535
run: |
36+
$PYTHON_PACKAGE_MANAGER env create -f environment.yml
37+
$PYTHON_PACKAGE_MANAGER activate mpebia
3638
pip install -e .
3739
3840
- name: Install queens
@@ -41,15 +43,22 @@ jobs:
4143
git clone https://github.com/queens-py/queens.git
4244
cd queens
4345
git checkout 699d819baf0bb77ca75aaf2c376428b4ea132d2f
46+
$PYTHON_PACKAGE_MANAGER activate mpebia
4447
pip install .[safe,fourc]
4548
cd ..
4649
4750
- name: Run pre-commit to check code quality
4851
shell: bash -el {0}
49-
run: pre-commit run --all-files
52+
run: |
53+
$PYTHON_PACKAGE_MANAGER activate mpebia
54+
pre-commit run --all-files
5055
5156
- name: Run tests
52-
run: pytest
57+
shell: bash -el {0}
58+
run: |
59+
$PYTHON_PACKAGE_MANAGER activate mpebia
60+
pytest
61+
5362
- name: Upload html coverage report
5463
uses: actions/upload-pages-artifact@v3
5564
with:

0 commit comments

Comments
 (0)