Skip to content

Refactoring examples to be testable #521

Refactoring examples to be testable

Refactoring examples to be testable #521

Workflow file for this run

name: On update
on:
push:
branches-ignore:
- master
tags-ignore:
- v**
permissions:
contents: read
jobs:
run-tox:
name: Tox
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform:
- ubuntu-latest
- macos-latest
- windows-latest
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout source at ${{ matrix.platform }}
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install tox
- name: Run tox (Pytype) | Python 3.11
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11' }}
run: |
tox -e typing-pytype -p all
- name: Run tox (Style, Type checker, Security, Docs) | Python 3.12
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }}
run: |
tox -e style,typing-mypy,typing-pyright,security-safety,security-bandit,docs -p all
- name: Run tox (Tests) | ${{ matrix.platform }}
run: |
tox -e py,py-async