Pillow/.github/workflows/lint.yml

49 lines
978 B
YAML
Raw Normal View History

2019-08-31 10:23:47 +03:00
name: Lint
on: [push, pull_request, workflow_dispatch]
2019-08-31 10:23:47 +03:00
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2019-08-31 10:23:47 +03:00
jobs:
build:
runs-on: ubuntu-latest
2020-07-02 13:08:42 +03:00
name: Lint
2019-09-02 11:24:20 +03:00
2019-08-31 10:23:47 +03:00
steps:
2023-09-05 00:04:29 +03:00
- uses: actions/checkout@v4
2019-08-31 10:23:47 +03:00
2020-02-05 18:59:04 +03:00
- name: pre-commit cache
2022-09-24 12:50:14 +03:00
uses: actions/cache@v3
2020-02-05 18:59:04 +03:00
with:
path: ~/.cache/pre-commit
key: lint-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
restore-keys: |
lint-pre-commit-
2020-06-30 22:04:43 +03:00
- name: Set up Python
2022-09-24 12:50:14 +03:00
uses: actions/setup-python@v4
2019-08-31 10:23:47 +03:00
with:
python-version: "3.x"
2021-11-18 14:42:41 +03:00
cache: pip
cache-dependency-path: "setup.py"
2019-08-31 10:23:47 +03:00
- name: Build system information
2021-01-06 14:42:31 +03:00
run: python3 .github/workflows/system-info.py
2019-08-31 10:23:47 +03:00
- name: Install dependencies
run: |
2021-01-06 14:42:31 +03:00
python3 -m pip install -U pip
python3 -m pip install -U tox
2019-08-31 10:23:47 +03:00
- name: Lint
run: tox -e lint
2020-06-22 12:22:43 +03:00
env:
PRE_COMMIT_COLOR: always