-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.13 KB
/
ci.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
36
37
38
39
40
41
42
43
44
name: Conda CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: false
- name: Create Conda environment
run: conda env create --file env.yml
- name: Activate Conda environment and install intreg_env
run: |
source $CONDA/bin/activate intreg_env
pip install -e .
- name: Verify Conda environment
run: |
source $CONDA/bin/activate intreg_env
conda info --all
conda list
- name: Run Pytest and Coverage
run: |
source $CONDA/bin/activate intreg_env
pytest --cov=intreg src/tests/ --cov-report=xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Debug Codecov Bash (Optional)
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}