-
Notifications
You must be signed in to change notification settings - Fork 17
46 lines (40 loc) · 1.22 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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-latest, ubuntu-latest]
python-version: ["3.9"]
steps:
- uses: "actions/checkout@v3"
with:
fetch-depth: 0
# Setup env
- uses: "conda-incubator/setup-miniconda@v2"
with:
activate-environment: pharokka_env
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
miniforge-variant: Mambaforge
channels: conda-forge,bioconda,defaults
channel-priority: strict
auto-update-conda: true
- name: Install pharokka
shell: bash -l {0}
run: |
mamba install python=${{ matrix.python-version }}
python -m pip install --upgrade pip
pip install -e .
- name: Run tests and collect coverage
run: pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}