Runnable #10
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: CI | |
on: [push] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python_version: [3.9, '3.10', '3.11', '3.12'] | |
steps: | |
- name: Setup Python ${{ matrix.python_version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Fetch httppubsubserver | |
uses: actions/checkout@v4 | |
- name: Generic python setup | |
run: | | |
python -m pip install --upgrade pip | |
- name: Installing dependencies | |
run: | | |
python -m pip install -r requirements.txt | |
- name: Lint httppubsubserver with black | |
run: | | |
python -m black --check src/httppubsubserver | |
- name: Type check httppubsubserver with mypy | |
working-directory: src | |
run: | | |
mypy httppubsubserver --explicit-package-bases |