forked from ParmEd/ParmEd
-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (43 loc) · 1.23 KB
/
Copy pathTest.yaml
File metadata and controls
50 lines (43 loc) · 1.23 KB
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
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.11", "3.12", "3.13"]
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: parmed-dev
auto-activate-base: false
environment-file: devtools/environment-dev.yaml
miniforge-variant: Miniforge3
python-version: ${{ matrix.python-version }}
- name: Optionally install AmberTools
if: ${{ matrix.python-version != 3.13 }}
shell: bash -l {0}
run: conda install "ambertools >=20.15" -c conda-forge -yq
- name: Install and test
shell: bash -lx {0}
run: |
env
bash -ex devtools/ci/install.sh
- name: Upload Coverage Results
uses: codecov/codecov-action@v5
if: endsWith(github.ref, '/master')
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: test/
fail_ci_if_error: true