@@ -21,19 +21,21 @@ jobs:
2121 - name : Set up Miniconda
2222 uses : conda-incubator/setup-miniconda@v2
2323 with :
24- auto-activate-base : false
25- environment-file : environment.yml
24+ auto-activate-base : true # This automatically configures the shell for Conda
2625 python-version : 3.8
2726
28- - name : Install dependencies
27+ - name :
28+ shell : bash -l {0}
2929 run : |
30- conda env update --file environment.yml --name cool-graph-env
30+ conda env create --file environment.yml --name cool-graph-env
3131 conda activate cool-graph-env
32+ conda info
3233
3334 - name : Run tests
35+ shell : bash -l {0}
3436 run : |
37+ conda activate cool-graph-env
3538 pytest
36- continue-on-error : true
3739
3840 release :
3941 runs-on : ubuntu-latest
@@ -46,22 +48,22 @@ jobs:
4648 - name : Set up Miniconda
4749 uses : conda-incubator/setup-miniconda@v2
4850 with :
49- auto-activate-base : false
50- environment-file : environment.yml
51+ auto-activate-base : true
5152 python-version : 3.8
5253
53- - name : Install build dependencies
54+ - name : Create environment for release
55+ shell : bash -l {0}
5456 run : |
55- conda env update --file environment.yml --name cool-graph-env
57+ conda env create --file environment.yml --name cool-graph-env
5658 conda activate cool-graph-env
59+ conda info
5760
58- - name : Build package
59- run : |
60- python setup.py sdist bdist_wheel
61-
62- - name : Publish to PyPI
61+ - name : Build and publish package
62+ shell : bash -l {0}
6363 env :
6464 TWINE_USERNAME : __token__
6565 TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
6666 run : |
67+ conda activate cool-graph-env
68+ python setup.py sdist bdist_wheel
6769 python -m twine upload dist/*
0 commit comments