Skip to content

Slightly simplify examples #842

Slightly simplify examples

Slightly simplify examples #842

Workflow file for this run

---
name: Main testing workflow
on: # yamllint disable-line rule:truthy
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "pypy3.8"
- "pypy3.9"
- "pypy3.10"
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools
pip install "tox~=4.0" "tox-gh-actions~=3.0" codecov
- name: Test with tox
run: |
tox
codecov
- name: Build checking
if: "matrix.python-version == '3.12'"
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m pip install --upgrade build twine
python -m build
twine check dist/*