forked from ParmEd/ParmEd
-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (41 loc) · 1.17 KB
/
Test.yaml
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
name: Tests
on:
push:
branches: master
pull_request:
branches: master
jobs:
build:
name: Build (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-name: parmed-dev
environment-file: devtools/environment-dev.yaml
create-args: >-
python=${{ matrix.python-version }}
- name: Optionally install AmberTools
if: ${{ matrix.python-version != 3.12 }}
shell: bash -l {0}
run: micromamba install "ambertools >=20.15" -c conda-forge -yq
- name: Install and test
shell: bash -l {0}
run: |
bash -ex devtools/ci/install.sh
- name: Upload Coverage Results
uses: codecov/codecov-action@v3
if: endsWith(github.ref, '/master')
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: test/
fail_ci_if_error: true