Pillow/.github/workflows/lint.yml

49 lines
964 B
YAML
Raw Normal View History

2019-08-31 10:23:47 +03:00
name: Lint
on: [push, pull_request]
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:
2020-03-29 23:27:24 +03:00
- uses: actions/checkout@v2
2019-08-31 10:23:47 +03:00
2020-02-05 18:59:04 +03:00
- name: pip cache
2020-06-22 12:22:43 +03:00
uses: actions/cache@v2
2020-02-05 18:59:04 +03:00
with:
path: ~/.cache/pip
key: lint-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
lint-pip-
- name: pre-commit cache
2020-06-30 22:01:19 +03:00
uses: actions/cache@v2
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
2020-06-30 22:01:19 +03:00
uses: actions/setup-python@v2
2019-08-31 10:23:47 +03:00
with:
2020-06-30 22:04:43 +03:00
python-version: 3.8
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
2020-02-05 18:59:04 +03:00