Add switch keywords (#6) #26
This file contains hidden or 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 Tests | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '>=3.9' | |
- name: Update pip | |
run: python -mpip install --upgrade pip | |
- name: Install tox | |
run: python -mpip install tox | |
- name: Run tests | |
run: tox | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Update pip | |
run: python -mpip install --upgrade pip | |
- name: Install tox | |
run: python -mpip install tox | |
- name: Style and lint | |
run: tox -e lint | |
docs: | |
name: Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Update pip | |
run: python -mpip install --upgrade pip | |
- name: Install tox | |
run: python -mpip install tox | |
- name: Build documentation | |
run: tox -e docs |