Add github workflow for conda and pytest #27
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: Edugrad CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# checkout the code at the commit (incl. branch) that triggered the workflow | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Conda Environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: '.env' | |
environment-file: 'environment.yaml' | |
auto-activate-base: false | |
- name: Install Edugrad | |
run: | | |
pip install -e . | |
- name: Run Tests | |
shell: bash -l {0} | |
run: | | |
conda list | |
pytest tests |