-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (42 loc) · 960 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
40
41
42
name: tests
on:
push:
branches:
- master
- dev
tags:
- v*
pull_request:
types:
- synchronize
- opened
- reopened
jobs:
test:
name: python-${{ matrix.python }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
python:
- 3.9
- '3.10'
os:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Poetry
run: pip -q --no-input install poetry
- name: Install Poetry dependencies
run: poetry install -n --no-root
- name: Run linters
run: poetry run make check
- name: Run tests
run: poetry run make tests
- name: Upload coverage
uses: codecov/codecov-action@v1
if: matrix.python == 3.9 && matrix.os == 'ubuntu-latest'