Skip to content

Commit

Permalink
Add GitHub Actions workflow for Python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GNiendorf committed Sep 1, 2024
1 parent 9674523 commit 1d9c2d0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python Tests

on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.7

- name: Install dependencies
shell: bash -l {0}
run: |
conda create -n tracepyci python=3.7 --yes
conda activate tracepyci
conda install --yes numpy scipy matplotlib scikit-learn pandas pytest pytest-cov
pip install .
- name: Run tests
shell: bash -l {0}
run: |
conda activate tracepyci
pytest tests/

0 comments on commit 1d9c2d0

Please sign in to comment.