Type deduce object subclasses: #702
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: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
env: | |
FORCE_COLOR: 1 | |
TERM: xterm-color | |
MYPY_FORCE_COLOR: 1 | |
MYPY_FORCE_TERMINAL_WIDTH: 200 | |
PYTEST_ADDOPTS: --color=yes | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install locales | |
run: | | |
sudo locale-gen zh_CN.GBK | |
sudo update-locale | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Pip install | |
run: make install | |
- name: Run ruff | |
run: make ruff | |
- name: Run mypy | |
run: make mypy | |
- name: Run black | |
run: make black | |
- name: Run isort | |
run: make isort | |
- name: Run typos | |
run: make typos | |
- name: Run unit tests | |
run: make test | |
- name: Run e2e tests | |
run: make test-e2e | |
# TODO: fail if docs are out of date | |
- name: Build docs | |
run: make docs |