-
-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (35 loc) · 918 Bytes
/
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
name: TTP Templates Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
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/
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: |
pip install poetry
poetry install
- name: Run pytest
run: |
poetry run pytest -vv -s