forked from fabric/patchwork
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (39 loc) · 1.01 KB
/
tests.yaml
File metadata and controls
42 lines (39 loc) · 1.01 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
name: test
run-name: Run tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
pre-commit:
name: Check pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0
pytest:
name: Run pytests
runs-on: ${{ matrix.os }}
needs: [ pre-commit ]
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
include:
- os: ubuntu-20.04
python-version: "3.6"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pytest
run: pip install pytest invocations mock pytest-relaxed
- name: Setup patchwork
run: pip install -e .
- name: Test with pytest
run: pytest