Skip to content

Lock file maintenance #632

Lock file maintenance

Lock file maintenance #632

Workflow file for this run

name: Lint files
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches:
- 'master'
- 'v[0-9]+.[0-9]+'
pull_request:
branches:
- 'master'
- 'v[0-9]+.[0-9]+'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Install Poetry
uses: snok/install-poetry@v1.3
with:
virtialenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: poetry
- name: Install dependencies
run: |
poetry install -v --sync --no-interaction
- name: Lint
run: |
poetry run pre-commit run --all-files