Skip to content

Use --github--pull-request--pre-commit #16

Use --github--pull-request--pre-commit

Use --github--pull-request--pre-commit #16

Workflow file for this run

name: pull-request
on:
pull_request:
branches:
- master
schedule:
- cron: 0 0 * * *
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Run 'pre-commit'
uses: dycw/action-pre-commit@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
repos: |-
dycw/pre-commit-hook-nitpick
pre-commit/pre-commit-hooks
pyright:
runs-on: ubuntu-latest
steps:
- name: Run 'pyright'
uses: dycw/action-pyright@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
python-version: "3.14"
pytest:
env:
CI: "1"
name: pytest (${{ matrix.os }}, ${{ matrix.python-version }}, ${{
matrix.resolution }})
runs-on: ${{ matrix.os }}
steps:
- name: Run 'pytest'
uses: dycw/action-pytest@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
python-version: ${{ matrix.python-version }}
resolution: ${{ matrix.resolution }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
python-version:
- "3.14"
resolution:
- highest
ruff:
runs-on: ubuntu-latest
steps:
- name: Run 'ruff'
uses: dycw/action-ruff@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}