Skip to content

Commit 1d9c2d0

Browse files
committed
Add GitHub Actions workflow for Python tests
1 parent 9674523 commit 1d9c2d0

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/python-tests.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Python Tests
2+
3+
on:
4+
push:
5+
branches: [ master, dev ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Miniconda
17+
uses: conda-incubator/setup-miniconda@v2
18+
with:
19+
auto-update-conda: true
20+
python-version: 3.7
21+
22+
- name: Install dependencies
23+
shell: bash -l {0}
24+
run: |
25+
conda create -n tracepyci python=3.7 --yes
26+
conda activate tracepyci
27+
conda install --yes numpy scipy matplotlib scikit-learn pandas pytest pytest-cov
28+
pip install .
29+
30+
- name: Run tests
31+
shell: bash -l {0}
32+
run: |
33+
conda activate tracepyci
34+
pytest tests/

0 commit comments

Comments
 (0)