-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.06 KB
/
pr_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
name: Continuous Integration
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install sg
run: python3 -m pip install -e .[ci]
- name: Install hmmer
run: sudo apt-get install hmmer
- name: Run tests
run: pytest tests -v --cov=./socialgene --cov-report=xml:./coverage.xml --cov-report term-missing
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true # optional (default = false)
files: ./coverage.xml
verbose: true # optional (default = false)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}