citation #147
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: | |
paths-ignore: | |
- '**.md' | |
- '**.ipynb' | |
pull_request: | |
types: [opened, reopened, edited] | |
paths-ignore: | |
- '**.md' | |
- '**.ipynb' | |
jobs: | |
create-env: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: create environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: "3.10" | |
mamba-version: "*" | |
channels: conda-forge,bioconda,defaults | |
auto-activate-base: false | |
activate-environment: metatag-dev | |
environment-file: envs/metatag-dev.yml | |
- name: Build & Install metatag | |
run: poetry build && pip install dist/metatag*.whl | |
- name: Run tests and compute coverage | |
run: coverage run -m unittest discover tests && coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
version: "v0.1.15" | |