-
-
Notifications
You must be signed in to change notification settings - Fork 34
58 lines (54 loc) · 1.48 KB
/
main.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
54
55
56
57
58
name: TTP Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
linters:
name: linters
strategy:
matrix:
python-version: [ '3.7' ]
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Dependencies
run: |
python -m pip install poetry
python -m poetry install
- name: Run pre-commit
run: python -m poetry run pre-commit run --all-files
run_tests:
name: Testing on Python ${{ matrix.python-version }} (${{ matrix.platform}})
defaults:
run:
# that is to run pytest from within tests directory
working-directory: test/pytest
shell: bash
strategy:
fail-fast: false
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
platform: [ubuntu-latest, macOS-10.15, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install poetry
python -m poetry install -E full
- name: Run pytest
run: python -m poetry run pytest -vv