Package Refactoring + CI #5
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: | |
paths-ignore: | |
- '**.md' | |
- '**.ipynb' | |
- '**.bib' | |
- 'ms/*' | |
pull_request: | |
types: [opened, reopened, edited] | |
paths-ignore: | |
- '**.md' | |
- '**.ipynb' | |
- '**.bib' | |
- 'ms/*' | |
jobs: | |
create-env: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-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.8 | |
# mamba-version: "*" | |
channels: conda-forge,bioconda,defaults | |
auto-activate-base: false | |
activate-environment: tests_brendapyrser | |
environment-file: envs/brendapyrser-dev.yml | |
- name: Build & Install BRENDApyrser | |
run: poetry build && pip install dist/brendapyrser*.whl | |
- name: Run tests and collect 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" |