Skip to content

Unit Tests

Unit Tests #334

Workflow file for this run

name: Unit Tests
on:
push:
pull_request:
schedule:
- cron: '0 10 * * 3,6'
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.6', 'pypy-3.7']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Test with pytest
run: |
pytest --durations=0 --cov=./
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1