Merge pull request #1 from zkurtz/fix-ci #4
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: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
name: continuous-integration | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12.2' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry config virtualenvs.create false | |
poetry install --no-interaction --no-ansi | |
- name: Run unit tests with pytest | |
run: pytest | |
- name: Check code formatting with Black | |
run: black --check . | |
- name: Check code quality with Ruff | |
run: ruff check . | |
- name: Check type hints with pyright | |
run: pyright |