Skip to content

Commit 0ec796c

Browse files
daviddesanchoclaude
andcommitted
ci: add GitHub Actions workflow for automated testing
Runs pytest on push/PR to master and develop across: - OS: ubuntu-latest, macos-latest - Python: 3.10, 3.11, 3.12 Uses miniforge/conda to install mdtraj and scientific stack reliably. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent acc846c commit 0ec796c

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, develop]
6+
pull_request:
7+
branches: [master, develop]
8+
9+
jobs:
10+
test:
11+
name: Python ${{ matrix.python-version }} / ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, macos-latest]
18+
python-version: ["3.10", "3.11", "3.12"]
19+
20+
defaults:
21+
run:
22+
shell: bash -l {0}
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up conda (miniforge)
29+
uses: conda-incubator/setup-miniconda@v3
30+
with:
31+
miniforge-version: latest
32+
python-version: ${{ matrix.python-version }}
33+
activate-environment: mastermsm-test
34+
auto-activate-base: false
35+
36+
- name: Install dependencies
37+
run: |
38+
conda install -y -c conda-forge \
39+
numpy scipy matplotlib networkx \
40+
mdtraj scikit-learn
41+
pip install -e .
42+
43+
- name: Run tests
44+
run: |
45+
pip install pytest
46+
pytest mastermsm/test/ -v --tb=short

0 commit comments

Comments
 (0)