-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (43 loc) · 1.14 KB
/
python-app.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
name: Python application
on:
workflow_dispatch:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Type check with mypy
run: |
poetry run mypy .
- name: Lint with ruff
run: |
poetry run ruff check .
- name: Lint with isort
run: |
poetry run isort --check .
- name: Lint with black
run: |
poetry run black --check .
- name: Download sample data
run: |
wget https://static.webknossos.org/data/l4_sample.zip
unzip l4_sample.zip
- name: Run tests
run: |
poetry run pytest -vv tests/test_v2.py tests/test_v3.py tests/test_store.py
- name: Run perf tests
run: |
TEST_SIZE=128 poetry run pytest -vv -s tests/test_perf.py