Debian Codegraph @

.github/workflows/ci-unit-tests.yml

raw
1 name: Unit Tests
2
3 on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9 jobs:
10 unit-tests:
11 env:
12 VIRTUAL_ENV: github
13 runs-on: ubuntu-latest
14 strategy:
15 matrix:
16 version:
17 - python: "3.7"
18 tornado: ">=4,<5"
19 - python: "3.7"
20 tornado: ">=5,<6"
21 - python: "3.7"
22 tornado: ">=6"
23 - python: "3.8"
24 tornado: ">=4,<5"
25 - python: "3.8"
26 tornado: ">=5,<6"
27 - python: "3.8"
28 tornado: ">=6"
29 - python: "3.9"
30 tornado: ">=4,<5"
31 - python: "3.9"
32 tornado: ">=5,<6"
33 - python: "3.9"
34 tornado: ">=6"
35 name: unit-tests (py ${{ matrix.version.python }} tornado ${{ matrix.version.tornado }})
36 steps:
37 - uses: actions/checkout@v2
38 with:
39 submodules: true
40
41 - uses: actions/setup-python@v2
42 with:
43 python-version: ${{ matrix.version.python }}
44
45 - name: Export TORNADO variable
46 run: |
47 echo "TORNADO=${{ matrix.version.tornado }}" >> $GITHUB_ENV
48
49 - name: Install pycurl dependencies
50 run: sudo apt-get install libgnutls28-dev libcurl4-openssl-dev libssl-dev
51
52 - name: Install dependencies
53 run: make bootstrap
54
55 - name: Run tests
56 run: make test_ci
57
58 - name: Upload coverage to codecov
59 uses: codecov/[email protected]
60 with:
61 verbose: true