-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (33 loc) · 946 Bytes
/
tests.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
name: tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: hmmer
version: 1.0
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}
- run: pip install coverage -r requirements.txt
- name: Install dependencies
run: |
pip install .[dev]
- name: Update DefenseFinder models
run: |
defense-finder update
- name: Run the tests
run: |
coverage run --source . tests/run_tests.py
coverage report -m