Merge pull request #85 from gbouras13/mmseqs #314
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,pull_request] | |
jobs: | |
tests: | |
name: "Python ${{ matrix.python-version }}" | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
strategy: | |
matrix: | |
os: [macos-12, ubuntu-latest] | |
python-version: ["3.9"] | |
steps: | |
- uses: "actions/checkout@v3" | |
with: | |
fetch-depth: 0 | |
# Setup env | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: dnaapler | |
environment-file: build/environment.yaml | |
python-version: ${{ matrix.python-version }} | |
auto-activate-base: false | |
channels: conda-forge,bioconda,defaults | |
channel-priority: strict | |
auto-update-conda: true | |
- name: Install project | |
shell: bash -l {0} | |
run: | | |
conda install python=${{ matrix.python-version }} | |
python -m pip install --upgrade pip | |
pip install -e . | |
pip install black | |
pip install isort | |
pip install pytest | |
pip install pytest-cov | |
- 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@v4 | |