v2.3.0 #34
Workflow file for this run
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: Test | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install tox | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install "tox >= 3.26.0" | |
- name: Run flake8 via tox | |
run: python -m tox -e flake | |
- name: Run black via tox | |
run: python -m tox -e black -- --check | |
- name: Run mypy via tox | |
run: python -m tox -e type | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
py: ['3.8', '3.9', '3.10', '3.11'] | |
os: ['ubuntu-latest', 'windows-latest'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python ${{ matrix.py }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py }} | |
- name: Install tox | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install "tox-gh-actions >= 2.10.0" | |
python -m pip install "tox >= 3.26.0" | |
- name: Run tests via tox | |
run: python -m tox | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v3 |