mirror of
https://github.com/flibusta-apps/fb2converter_server.git
synced 2025-12-06 15:05:37 +01:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
36 lines
967 B
YAML
36 lines
967 B
YAML
name: Linters
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
Run-Pre-Commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 32
|
|
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.9
|
|
|
|
- name: Install pre-commit
|
|
run: pip3 install pre-commit
|
|
|
|
- name: Pre-commit (Push)
|
|
env:
|
|
SETUPTOOLS_USE_DISTUTILS: stdlib
|
|
if: ${{ github.event_name == 'push' }}
|
|
run: pre-commit run --source ${{ github.event.before }} --origin ${{ github.event.after }} --show-diff-on-failure
|
|
|
|
- name: Pre-commit (Pull-Request)
|
|
env:
|
|
SETUPTOOLS_USE_DISTUTILS: stdlib
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
run: pre-commit run --source ${{ github.event.pull_request.base.sha }} --origin ${{ github.event.pull_request.head.sha }} --show-diff-on-failure
|