Skip to content

Merge pull request #24 from metagenlab/summary #46

Merge pull request #24 from metagenlab/summary

Merge pull request #24 from metagenlab/summary #46

Workflow file for this run

name: Tests
on:
push:
branches: ["main","dev"]
paths:
- ".github/workflows/unit-tests.yml"
- "tests/**"
- "assembly_finder/**"
- "setup.py"
- "!.github/workflows/build-docs.yml"
- "!docs/**"
- "!mkdocs.yml"
permissions:
contents: read
jobs:
linux:
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python-version: ["3.12"]
fail-fast: false
name: Linux
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
miniforge-version: "latest"
miniforge-variant: Mambaforge
use-mamba: true
mamba-version: "*"
channels: conda-forge,bioconda,defaults
channel-priority: strict
activate-environment: assembly_finder
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- name: "Test and generate coverage report for Linux python ${{ matrix.python-version }}"
run: |
python -m pip install --upgrade pip
python -m pip install pytest coverage
python -m pip install .
coverage run -m pytest
osx:
runs-on: "macos-latest"
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python-version: ["3.12"]
architecture: ["x64"]
fail-fast: false
name: OSX
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
miniforge-version: "latest"
miniforge-variant: Mambaforge
use-mamba: true
mamba-version: "*"
channels: conda-forge,bioconda,defaults
channel-priority: strict
activate-environment: assembly_finder
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- name: "Test and generate coverage report for OSX python ${{ matrix.python-version }}"
run: |
python -m pip install --upgrade pip
python -m pip install pytest coverage
python -m pip install .
coverage run -m pytest