Skip to content

Commit 54c94b0

Browse files
authored
Merge pull request #29 from hmacdope/ci_and_tests
CI fixes for conda forge
2 parents 94abc63 + 731ab82 commit 54c94b0

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

.github/workflows/CI.yaml

+20-15
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ on:
99
- "main"
1010
schedule:
1111
- cron: "0 0 * * *"
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: "${{ github.workflow }}-${{ github.ref }}"
16+
cancel-in-progress: true
17+
18+
defaults:
19+
run:
20+
shell: bash -l {0}
21+
1222

1323
jobs:
1424
test:
@@ -18,13 +28,13 @@ jobs:
1828
fail-fast: false
1929
matrix:
2030
os: [macOS-latest, ubuntu-latest]
21-
python-version: [3.9, "3.10"]
31+
python-version: ["3.10", "3.11"]
2232

2333
steps:
24-
- uses: actions/checkout@v3
34+
- name: Checkout Repository
35+
uses: actions/checkout@v3
2536

2637
- name: Additional info about the build
27-
shell: bash
2838
run: |
2939
uname -a
3040
df -h
@@ -33,35 +43,30 @@ jobs:
3343
3444
# More info on options: https://github.com/conda-incubator/setup-miniconda
3545
- name: Setup Micromamba
36-
uses: mamba-org/provision-with-micromamba@main
46+
uses: mamba-org/setup-micromamba@v1
3747
with:
3848
environment-file: devtools/conda-envs/test_env.yaml
3949
environment-name: test
40-
extra-specs: |
50+
create-args: >-
4151
python==${{ matrix.python-version }}
4252
4353
- name: Install package
44-
45-
# conda setup requires this special shell
46-
shell: bash -l {0}
4754
run: |
4855
python -m pip install . --no-deps
4956
micromamba list
5057
5158
5259
- name: Run tests
53-
54-
# conda setup requires this special shell
55-
shell: bash -l {0}
56-
5760
run: |
5861
pytest -v --cov=mtenn --cov-report=xml --color=yes mtenn/tests/
5962
60-
- name: CodeCov
63+
- name: Upload Code Coverage to Codecov
64+
uses: codecov/codecov-action@v3
65+
# Don't upload coverage scheduled or on fork
6166
if: ${{ github.repository == 'choderalab/mtenn'
62-
&& github.event != 'schedule' }}
63-
uses: codecov/codecov-action@v1
67+
&& github.event != 'schedule' }}
6468
with:
6569
file: ./coverage.xml
6670
flags: unittests
6771
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
72+
fail_ci_if_error: false

devtools/conda-envs/test_env.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: test
22
channels:
33
- conda-forge
4-
- dglteam
54
dependencies:
65
- pytorch
76
- pytorch_geometric

0 commit comments

Comments
 (0)