forked from hanzi-chai/pychai
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 801 Bytes
/
Copy pathtest.yml
File metadata and controls
36 lines (34 loc) · 801 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
34
35
36
name: test
on:
push:
branches:
- master
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- '3.8'
env:
OS: ${{ matrix.os }}
PYTHON: '3.8'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: pip install -r requirements.txt
- run: pytest --cov=./ --cov-report=xml --cov-report=term
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
env_vars: OS,PYTHON
name: codecov