forked from WhyNotHugo/python-barcode
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 749 Bytes
/
Copy pathtests.yml
File metadata and controls
28 lines (26 loc) · 749 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
name: Tests
on: [push, pull_request]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, macOS-10.14]
python: [ '3.5', '3.6', '3.7' ]
name: python${{ matrix.python }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install test dependencies
run: |
pip install --upgrade --no-cache-dir pipenv
pipenv install --dev
- name: Run tests
run: pipenv run pytest
- name: Report coverage
run: pipenv run codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}