-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (47 loc) · 1.33 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on: [push, pull_request]
jobs:
pyright-check:
name: Run Pyright
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Add pipenv to PATH
shell: bash
run: |
echo "$(pipenv --venv)/bin" >> $GITHUB_PATH
- uses: jakebailey/pyright-action@v2
with:
workdir: "src"
args: "--project pyrightconfig.json"
flake8-lint:
name: Check coding style via flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: flake8 lint
uses: py-actions/flake8@v2
with:
max-line-length: "120"
pytest-testing-fast:
name: Run fast tests with pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Run fast tests itself with pytest
run: |
pipenv run pytest -m 'not skip_ci and not slow' test
pytest-testing-slow:
name: Run slow tests with pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Run slow tests itself with pytest
run: |
pipenv run pytest -m 'not skip_ci and slow' test