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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
name: Unit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
unit-tests:
env:
VIRTUAL_ENV: github
runs-on: ubuntu-latest
strategy:
matrix:
version:
- python: "3.7"
tornado: ">=4,<5"
- python: "3.7"
tornado: ">=5,<6"
- python: "3.7"
tornado: ">=6"
- python: "3.8"
tornado: ">=4,<5"
- python: "3.8"
tornado: ">=5,<6"
- python: "3.8"
tornado: ">=6"
- python: "3.9"
tornado: ">=4,<5"
- python: "3.9"
tornado: ">=5,<6"
- python: "3.9"
tornado: ">=6"
name: unit-tests (py ${{ matrix.version.python }} tornado ${{ matrix.version.tornado }})
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.version.python }}
- name: Export TORNADO variable
run: |
echo "TORNADO=${{ matrix.version.tornado }}" >> $GITHUB_ENV
- name: Install pycurl dependencies
run: sudo apt-get install libgnutls28-dev libcurl4-openssl-dev libssl-dev
- name: Install dependencies
run: make bootstrap
- name: Run tests
run: make test_ci
- name: Upload coverage to codecov
uses: codecov/codecov-action@v2.1.0
with:
verbose: true
|