-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.14 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Tests
on:
- push
jobs:
test:
strategy:
matrix:
py:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "pypy3.9"
- "pypy3.10"
pyramid_version:
- "<2"
- ">=2"
name: "Python: ${{ matrix.py }}, Pyramid: ${{ matrix.pyramid_version }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
- name: Install
run: pip install .[testing] "pyramid${{ matrix.pyramid_version }}"
- name: Running tests
run: pytest tests -v
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install
run: pip install .[linting]
- name: Flake8
run: flake8 pyramid_tasks tests
- name: Black
run: black --check pyramid_tasks tests
- name: isort
run: isort --check pyramid_tasks tests