generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (29 loc) · 940 Bytes
/
CI_main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Tostadas CI
on:
pull_request:
types: [opened, reopened]
branches: [master, dev]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Set Up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Mambaforge
run: |
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh
bash Mambaforge-$(uname)-$(uname -m).sh -b -p $HOME/mambaforge
export PATH="$HOME/mambaforge/bin:$PATH"
- name: Create Environment and Run Tests
run: |
source $HOME/mambaforge/etc/profile.d/conda.sh
conda activate
mamba env create -f tests/test_env.yml
conda activate tostadas_tests
pytest -p no:warnings tests/test_main.py