-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9d661d
commit 1af6604
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Run Tests with Conda | ||
|
||
on: | ||
push: | ||
branches: | ||
- temp | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Conda | ||
run: | | ||
echo "deb [arch=amd64,arm64] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | sudo tee /etc/apt/sources.list.d/conda.list | ||
curl -L https://repo.anaconda.com/pkgs/misc/gpgkeys/conda-archive.asc | sudo apt-key add - | ||
sudo apt update | ||
sudo apt install conda | ||
- name: Create and Activate Conda Environment | ||
run: | | ||
conda env create -f environment.yml | ||
echo "source activate irp" >> ~/.bashrc | ||
source ~/.bashrc | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: python -m unittest tests_complete.py |