rename main branch #683
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: CI | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
tests: | |
runs-on: ${{ matrix.OS }}-latest | |
name: "tests" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu', 'macos'] | |
python-version: | |
- 3.9 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
use-mamba: true | |
python-version: ${{ matrix.python-version }} | |
miniforge-variant: Mambaforge | |
- name: "Install" | |
run: pip install -e . | |
- name: "Test imports" | |
run: | | |
# if we add more to this, consider changing to for + env vars | |
python -Ic "import ensembler" | |
- name: "Environment Information" | |
run: | | |
mamba info -a | |
mamba list | |
- name: "Run tests" | |
run: | | |
pytest -v --cov=ensembler --cov-report=xml | |
- name: codecovg | |
if: ${{ github.repository == 'rinikerlab/ensembler' && github.event != 'schedule'}} | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml | |
env_vars: OS,PYTHON | |
fail_ci_if_error: True | |
verbose: True |