-
Notifications
You must be signed in to change notification settings - Fork 39
47 lines (37 loc) · 1.2 KB
/
test.yml
File metadata and controls
47 lines (37 loc) · 1.2 KB
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
name: Test code
on:
workflow_dispatch:
workflow_call:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-2022"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: true
- uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install blast for OPM tests
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get update && sudo apt-get install -y ncbi-blast+
- name: Install blast for OPM tests
if: ${{ matrix.os == 'macos-latest' }}
run: brew install blast
- name: Lint with flake8
run: |
uvx flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
uvx flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install moleculekit
run: uv sync --group test
- name: Test
run: uv run pytest -n auto ./tests/ --durations=20
env:
LOCAL_PDB_REPO: ./tests/pdb/
SKIP_SPEED_TESTS: True