Skip to content

Bump snok/install-poetry in the dependencies group across 1 directory… #25

Bump snok/install-poetry in the dependencies group across 1 directory…

Bump snok/install-poetry in the dependencies group across 1 directory… #25

Workflow file for this run

name: Dev
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
dev:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Set up python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
uses: snok/install-poetry@v1.4.1
with:
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root --with docs
- name: Activate virtual environment
run: source $VENV
- name: Lint with Ruff
run: poetry run ruff check
- name: Check code security with Bandit
run: poetry run bandit -c pyproject.toml -r .
- name: Typing with mypy
run: poetry run mypy
- name: Format with Ruff
run: poetry run ruff format --check
- name: Build docs with Material for MkDocs
run: poetry run mkdocs build