-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (64 loc) · 1.5 KB
/
test.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: test
on:
push:
branches:
- develop
pull_request:
branches:
- develop
- main
jobs:
build:
name: Test installation
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
max-parallel: 5
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [ "3.10" ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up conda
uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge,bioconda,defaults
miniconda-version: "latest"
auto-activate-base: false
activate-environment: sincei
environment-file: requirements.yml
- name: Check environment
run: |
conda info
- name: List tools
run: |
conda list
- name: Install sincei
run: |
pip install .
which sincei
sincei --help
- name: Generate coverage report
if: matrix.os == 'ubuntu-latest'
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
verbose: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable