Bump the pip-minor-patch group with 2 updates (#116) #148
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: check | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
env: | |
PYTHON_VERSION: "3.11" | |
permissions: | |
contents: read | |
jobs: | |
fmt: | |
name: fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Python ${{ env.PYTHON_VERSION }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Cache virtual environment | |
uses: actions/cache@v4 | |
with: | |
path: | | |
.venv | |
~/.cache/pip | |
~/.cache/pypoetry | |
key: ${{ runner.os }}-venv-${{ hashFiles('poetry.lock') }} | |
- name: Setup poetry | |
run: | | |
pip install poetry poethepoet | |
poetry install -n --no-root --sync | |
- run: poe black --diff --check && poe isort --diff --check | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Python ${{ env.PYTHON_VERSION }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Cache virtual environment | |
uses: actions/cache@v4 | |
with: | |
path: | | |
.venv | |
~/.cache/pip | |
~/.cache/pypoetry | |
key: ${{ runner.os }}-venv-${{ hashFiles('poetry.lock') }} | |
- name: Setup poetry | |
run: | | |
pip install poetry poethepoet | |
poetry install -n --no-root --sync | |
- run: poe ruff && poe flake8 | |
mypy: | |
name: mypy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Python ${{ env.PYTHON_VERSION }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Cache virtual environment | |
uses: actions/cache@v4 | |
with: | |
path: | | |
.venv | |
~/.cache/pip | |
~/.cache/pypoetry | |
key: ${{ runner.os }}-venv-${{ hashFiles('poetry.lock') }} | |
- name: Setup poetry | |
run: | | |
pip install poetry poethepoet | |
poetry install -n --no-root --sync | |
- run: poe mypy |