Pillow/.github/workflows/lint.yml

50 lines
1.1 KiB
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
strategy:
matrix:
2019-11-04 23:55:50 +03:00
python-version: ["3.8"]
2019-08-31 10:23:47 +03:00
2019-09-22 17:09:27 +03:00
name: Python ${{ matrix.python-version }}
2019-09-02 11:24:20 +03:00
2019-08-31 10:23:47 +03:00
steps:
- uses: actions/checkout@v1
2020-02-05 18:59:04 +03:00
- name: pip cache
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: lint-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
lint-pip-
- name: pre-commit cache
uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
key: lint-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
restore-keys: |
lint-pre-commit-
2019-09-22 17:09:27 +03:00
- name: Set up Python ${{ matrix.python-version }}
2019-08-31 10:23:47 +03:00
uses: actions/setup-python@v1
with:
2019-09-22 17:09:27 +03:00
python-version: ${{ matrix.python-version }}
2019-08-31 10:23:47 +03:00
- name: Build system information
run: python .github/workflows/system-info.py
2019-08-31 10:23:47 +03:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: Lint
run: tox -e lint
2020-02-05 18:59:04 +03:00