fix: change bwa to bwa-aln-interactive #61
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: tests | |
on: | |
push: | |
branches: | |
- "**" | |
tags: | |
- "!**" | |
workflow_call: | |
env: | |
POETRY_VERSION: 1.8.2 | |
jobs: | |
Tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
PYTHON_VERSION: ["3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Checkout fulcrumgenomics/bwa | |
uses: actions/checkout@v4 | |
with: | |
repository: fulcrumgenomics/bwa | |
ref: interactive_aln | |
path: bwa | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.PYTHON_VERSION }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.PYTHON_VERSION }} | |
- name: Install poetry | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry==${{env.POETRY_VERSION}} | |
- name: Configure poetry | |
shell: bash | |
run: poetry config virtualenvs.in-project true | |
- name: Set up miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-variant: Miniforge | |
miniforge-version: latest | |
channels: conda-forge,bioconda | |
activate-environment: prymer | |
environment-file: prymer.yml | |
channel-priority: true | |
auto-update-conda: true | |
auto-activate-base: false | |
python-version: ${{ matrix.PYTHON_VERSION }} | |
- name: Unit tests (with doctest and coverage) | |
shell: bash -l {0} | |
run: | | |
conda activate prymer | |
poetry run pytest --cov=prymer --cov-report=xml --cov-branch --doctest-plus --doctest-modules prymer tests | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Style checking | |
shell: bash -l {0} | |
run: | | |
conda activate prymer | |
poetry run ruff format --check | |
- name: Run lint | |
shell: bash -l {0} | |
run: | | |
conda activate prymer | |
poetry run ruff check | |
- name: Run mypy | |
shell: bash -l {0} | |
run: | | |
conda activate prymer | |
poetry run mypy | |
- name: Run docs | |
shell: bash -l {0} | |
run: | | |
conda activate prymer | |
set -euo pipefail | |
poetry run mkdocs build --strict |