fix weird ci issue6 #80
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,pull_request] | |
jobs: | |
tests: | |
name: "Python ${{ matrix.python-version }}" | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
python-version: ["3.9"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: 3.9 | |
activate-environment: pypolca | |
environment-file: build/environment.yaml | |
auto-activate-base: false | |
miniforge-variant: Mambaforge | |
channels: conda-forge,bioconda,defaults | |
channel-priority: strict | |
auto-update-conda: true | |
- name: Install black and isort and pytest | |
shell: bash -l {0} | |
run: | | |
python -m pip install -U pip | |
pip install black | |
pip install isort | |
pip install pytest | |
- name: Check formatting | |
shell: bash -l {0} | |
run: just check-fmt | |
- name: Test and generate coverage report with pytest | |
shell: bash -l {0} | |
run: just test-ci | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |