-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (44 loc) · 1.3 KB
/
ci.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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
steps:
- name: Install Python via conda.
uses: s-weigand/setup-conda@v1
with:
python-version: ${{ matrix.python-version }}
conda-channels: defaults,bioconda,conda-forge
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true
- name: Install mamba.
run: conda install -y mamba
- name: Install test dependencies via pip
run: pip install -r requirements/test_black.txt
- name: Run tests
run: pytest
- name: Create text report
run: coverage report
- name: Create XML report for codacy
run: coverage xml
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
if: ${{ matrix.python-version == '3.7' }}
- name: Check style with black
run: make black-check
- name: Check style with flake8
run: flake8 .