refactor: switch: sentinel_value -> enum (for better type checking) #76
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: build | |
on: [push] | |
env: | |
SRC_DIRS: "contextvars_registry tests docs" | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.12' ] | |
name: run tests on Python v${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup Poetry | |
uses: abatilo/actions-poetry@v2 | |
- name: Install Python packages | |
run: | | |
poetry install --no-root | |
- name: lint | |
run: | | |
poetry run doit lint | |
- name: test | |
run: | | |
poetry run doit test |