Skip to content

tests

tests #223

Workflow file for this run

name: tests
on:
schedule:
- cron: '0 0 * * SUN'
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 4
matrix:
platform: [ubuntu-latest]
# '3.10' is failing because of deprecation
python-version: [3.7, 3.8, 3.9, "3.10", 3.11]
env:
PLATFORM: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox -e py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
env_vars: PLATFORM,PYTHON
name: codecov-umbrella
fail_ci_if_error: false