-
Notifications
You must be signed in to change notification settings - Fork 45
33 lines (30 loc) · 832 Bytes
/
Copy pathtests.yml
File metadata and controls
33 lines (30 loc) · 832 Bytes
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
---
name: test
on: [pull_request, push]
jobs:
test:
name: Python ${{ matrix.python-version }}, OS ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8]
os:
- ubuntu-latest
- ubuntu-18.04
- ubuntu-16.04
- macOS-latest
- macOS-10.14
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Perform tests
run: tox -e test
- name: Publish coverage
run: tox -e publish -- -t ${{ secrets.CODECOV_TOKEN }}