@@ -3,10 +3,10 @@ name: CI for Cool-Graph
33on :
44 push :
55 branches :
6- - develop
6+ - main
77 pull_request :
88 branches :
9- - develop
9+ - main
1010 release :
1111 types : [published]
1212
@@ -18,24 +18,21 @@ jobs:
1818 - name : Check out code
1919 uses : actions/checkout@v2
2020
21- - name : Set up Python 3.8
22- uses : actions /setup-python @v2
21+ - name : Set up Miniconda
22+ uses : conda-incubator /setup-miniconda @v2
2323 with :
24+ auto-activate-base : false
25+ environment-file : environment.yml
2426 python-version : 3.8
2527
2628 - name : Install dependencies
2729 run : |
28- python -m pip install --upgrade pip
29- if [ -f "requirements.txt" ]; then
30- pip install -r requirements.txt
31- else
32- echo "requirements.txt not found, skipping dependency installation."
33- fi
34- pip install wheel
30+ conda env update --file environment.yml --name cool-graph-env
31+ conda activate cool-graph-env
3532
3633 - name : Run tests
3734 run : |
38- pytest
35+ pytest
3936 continue-on-error : true
4037
4138 release :
@@ -46,15 +43,17 @@ jobs:
4643 - name : Check out code
4744 uses : actions/checkout@v2
4845
49- - name : Set up Python 3.8
50- uses : actions /setup-python @v2
46+ - name : Set up Miniconda
47+ uses : conda-incubator /setup-miniconda @v2
5148 with :
49+ auto-activate-base : false
50+ environment-file : environment.yml
5251 python-version : 3.8
5352
5453 - name : Install build dependencies
5554 run : |
56- python -m pip install --upgrade pip
57- pip install setuptools wheel twine
55+ conda env update --file environment.yml --name cool-graph-env
56+ conda activate cool-graph-env
5857
5958 - name : Build package
6059 run : |
0 commit comments