generated from microsoft/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (49 loc) · 1.25 KB
/
RosettaCI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test in Rosetta Container
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [created]
workflow_dispatch:
env:
ROSETTA_BIN: /usr/local/bin/
GITHUB_ROSETTA_TEST: "YES"
jobs:
RosettaTests:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
env:
OS: ${{ matrix.os }}
container:
image: rosettacommons/rosetta:mpi
defaults:
run:
shell: bash -el {0}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup RosettaPy on ${{ matrix.os }}
run: |
apt-get update -y
apt-get install build-essential gnupg2 git -y
bash scripts/upgrade_git.sh
pip install '.[test]' -U
- name: Run test cases
run: |
pytest tests/ -m 'integration'
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}