Fix the example's compatibility with the latest dependencies #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- auto | |
- try | |
- try-perf | |
- master | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.7, 3.8, 3.9, "3.10", pypy3.7, pypy3.8, pypy3.9] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install -r requirements-dev.txt | |
pip install . | |
- name: Run tests | |
run: if which mypy; then make ci; else make test; fi | |
- name: Report coverage to Codecov | |
uses: codecov/codecov-action@v1 |