-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (41 loc) · 1.2 KB
/
Copy pathci.yml
File metadata and controls
51 lines (41 loc) · 1.2 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
51
name: CI
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
test:
name: Python ${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up conda (miniforge)
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
python-version: ${{ matrix.python-version }}
activate-environment: mastermsm-test
auto-activate-base: false
- name: Install dependencies
run: |
conda install -y -c conda-forge \
numpy scipy matplotlib networkx \
mdtraj scikit-learn
pip install pytest
pip install -e .
- name: Show package versions
run: conda list | grep -E "numpy|scipy|mdtraj|networkx|scikit"
- name: Run tests
run: pytest mastermsm/test/ -v --tb=long