Add Docker build CI (#5) #26
Workflow file for this run
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: Lint | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
PYTHON_VERSION: '3.11.9' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
shell: bash | |
run: pipx install poetry | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "${{ env.PYTHON_VERSION }}" | |
cache: 'poetry' | |
- name: Install Dependencies | |
shell: bash | |
run: poetry install | |
- name: Run ruff check | |
shell: bash | |
run: poetry run ruff check | |
- name: Run mypy | |
shell: bash | |
run: poetry run mypy . |