-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.04 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
name: CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Python via conda.
uses: s-weigand/setup-conda@v1
with:
conda-channels: defaults,bioconda,conda-forge
- name: Install mamba.
run: conda install -y mamba
- name: Install the cadd-scripts package from bioconda
run: mamba install -y cadd-scripts
- name: Checkout repository
uses: actions/checkout@v2
- name: Install project Python dependencies
run: |
pip install -r requirements/test.txt
- name: Run tests
run: |
coverage run --rcfile=.coveragerc manage.py test -v 2 --settings=config.settings.test
coverage xml
coverage report
- name: Check formatting
run: make black arg=--check
- name: Run Codacy coverage reporter
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml