Debian Codegraph @

.github/workflows/main.yml

raw
1 on:
2 push:
3 branches:
4 - master
5 - main
6 - v*.x
7 pull_request:
8 branches:
9 - master
10 - main
11 - v*.x
12 workflow_dispatch:
13
14 jobs:
15 tests:
16 name: "Python ${{ matrix.python-version }}"
17 runs-on: "ubuntu-20.04"
18 strategy:
19 fail-fast: false
20 matrix:
21 python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"]
22 steps:
23 - uses: "actions/checkout@v2"
24 - uses: "actions/setup-python@v2"
25 with:
26 python-version: "${{ matrix.python-version }}"
27 - name: "Update pip"
28 run: python -m pip install --upgrade pip setuptools wheel
29 - name: "Install tox dependencies"
30 run: python -m pip install --upgrade tox tox-gh-actions coverage[toml]
31 - name: "Run tox for ${{ matrix.python-version }}"
32 run: "python -m tox"
33 - name: "Upload coverage to Codecov"
34 uses: "codecov/codecov-action@v1"
35 with:
36 fail_ci_if_error: true