46 lines (44 loc) · 1.07 KB
/
ci-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
name: tests
on:
pull_request:
branches: '**'
push:
branches:
- master
jobs:
test:
strategy:
fail-fast: false
matrix:
config:
- python-version: 3.6
tox: 36
- python-version: 3.7
tox: 37
- python-version: 3.8
tox: 38
- python-version: 3.9
tox: 39
poetry-version: [ 1.1.4 ]
os: [ ubuntu-20.04, ubuntu-18.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.config.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.config.python-version }}
- name: Python Poetry Action
uses: abatilo/actions-poetry@v2.1.0
with:
poetry-version: 1.1.2
- name: Install dependencies
run: |
pip install tox coveralls
- name: Run Tox
run: tox -e py${{ matrix.config.tox }}
- name: coveralls
run: |
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}