File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments