Debian Codegraph @

.github/workflows/test.yml

raw
1 name: Test
2
3 on:
4 push:
5 branches: [master]
6 pull_request:
7 branches: [master]
8
9 jobs:
10 lint:
11 runs-on: ubuntu-latest
12
13 steps:
14 - uses: actions/checkout@v2
15 - name: Set up Python
16 uses: actions/setup-python@v1
17 with:
18 python-version: '3.8'
19 - name: Lint
20 run: |
21 pip install tox
22 tox -e lint
23
24 build:
25 runs-on: ${{ matrix.platform }}
26 strategy:
27 matrix:
28 python-version: [3.6, 3.8]
29 platform: [ubuntu-latest, windows-latest]
30
31 steps:
32 - uses: actions/checkout@v2
33 - name: Set up Python ${{ matrix.python-version }}
34 uses: actions/setup-python@v1
35 with:
36 python-version: ${{ matrix.python-version }}
37 - name: Test with tox
38 run: |
39 pip install tox -r requirements-dev.txt
40 tox -e py-cov