Skip to content

build(deps-dev): bump mypy from 1.9.0 to 1.10.0 in the pip-semver-minor group #884

build(deps-dev): bump mypy from 1.9.0 to 1.10.0 in the pip-semver-minor group

build(deps-dev): bump mypy from 1.9.0 to 1.10.0 in the pip-semver-minor group #884

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
run-pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.8"
- 3.x
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
check-latest: true
- run: poetry install --sync --no-root --no-interaction
- run: poetry run --no-interaction pytest --cov
run-pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: run-pre-commit
run: pipx run pre-commit run --all-files
- id: generate-token
if: ${{ !cancelled() && steps.run-pre-commit.conclusion == 'failure' }}
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- if: ${{ !cancelled() && steps.generate-token.conclusion == 'success' }}
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: Run pre-commit
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: pre-commit/${{ github.ref_name }}
delete-branch: true
title: Run pre-commmit
body: