Set up CI pipeline with GitHub Actions #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Tests | |
on: | |
push: | |
branches: [ master ] | |
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/ |