Fix bug #10
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: Conda Environment and Pytest | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-activate-base: false | |
- name: Install Dependencies | |
run: | | |
echo "Initialize Conda" | |
source $CONDA/etc/profile.d/conda.sh | |
echo "Activating Conda environment" | |
conda activate /home/runner/work/edugrad/edugrad/.env | |
echo "Environment activated" | |
conda env update --file environment.yaml --prefix .env | |
pip install -e . | |
- name: Run Pytest | |
run: | | |
pytest tests/ |