pypi #14
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 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 }} |