check poetry lockfile #367
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: Linting | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ${{ matrix.image }} | |
strategy: | |
matrix: | |
os: | |
- Ubuntu | |
python-version: | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
include: | |
- os: Ubuntu | |
image: Ubuntu-22.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up python {{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Install poetry | |
uses: snok/install-poetry@v1 | |
- name: poetry check | |
run: poetry check --lock | |
- name: Install project | |
run: poetry install --extras azure | |
- name: ruff | |
run: poetry run ruff check . | |
- name: ruff format | |
run: poetry run ruff format --check . | |
- name: mypy | |
run: poetry run mypy . |