9
9
- " main"
10
10
schedule :
11
11
- 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
+
12
22
13
23
jobs :
14
24
test :
@@ -18,13 +28,13 @@ jobs:
18
28
fail-fast : false
19
29
matrix :
20
30
os : [macOS-latest, ubuntu-latest]
21
- python-version : [3.9 , "3.10 "]
31
+ python-version : ["3.10" , "3.11 "]
22
32
23
33
steps :
24
- - uses : actions/checkout@v3
34
+ - name : Checkout Repository
35
+ uses : actions/checkout@v3
25
36
26
37
- name : Additional info about the build
27
- shell : bash
28
38
run : |
29
39
uname -a
30
40
df -h
@@ -33,35 +43,30 @@ jobs:
33
43
34
44
# More info on options: https://github.com/conda-incubator/setup-miniconda
35
45
- name : Setup Micromamba
36
- uses : mamba-org/provision-with- micromamba@main
46
+ uses : mamba-org/setup- micromamba@v1
37
47
with :
38
48
environment-file : devtools/conda-envs/test_env.yaml
39
49
environment-name : test
40
- extra-specs : |
50
+ create-args : >-
41
51
python==${{ matrix.python-version }}
42
52
43
53
- name : Install package
44
-
45
- # conda setup requires this special shell
46
- shell : bash -l {0}
47
54
run : |
48
55
python -m pip install . --no-deps
49
56
micromamba list
50
57
51
58
52
59
- name : Run tests
53
-
54
- # conda setup requires this special shell
55
- shell : bash -l {0}
56
-
57
60
run : |
58
61
pytest -v --cov=mtenn --cov-report=xml --color=yes mtenn/tests/
59
62
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
61
66
if : ${{ github.repository == 'choderalab/mtenn'
62
- && github.event != 'schedule' }}
63
- uses : codecov/codecov-action@v1
67
+ && github.event != 'schedule' }}
64
68
with :
65
69
file : ./coverage.xml
66
70
flags : unittests
67
71
name : codecov-${{ matrix.os }}-py${{ matrix.python-version }}
72
+ fail_ci_if_error : false
0 commit comments