2020-07-10 18:50:51 +02:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-07-14 19:09:20 +02:00
|
|
|
# On other branches the `pull_request` trigger will be used
|
|
|
|
branches: [current, next]
|
|
|
|
|
2020-07-10 18:50:51 +02:00
|
|
|
pull_request:
|
2021-11-25 23:05:01 +01:00
|
|
|
types: [opened, edited, reopened, synchronize]
|
2020-07-10 18:50:51 +02:00
|
|
|
|
2021-10-23 21:57:26 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2021-11-25 23:24:02 +01:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
2021-10-23 21:57:26 +02:00
|
|
|
|
2020-07-10 18:50:51 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-11 02:04:35 +02:00
|
|
|
- uses: actions/checkout@v4.1.0
|
2020-07-14 19:09:20 +02:00
|
|
|
- name: Set up Python 3.8
|
2023-12-07 08:27:06 +01:00
|
|
|
uses: actions/setup-python@v5
|
2020-07-10 18:50:51 +02:00
|
|
|
with:
|
2020-07-14 19:09:20 +02:00
|
|
|
python-version: 3.8
|
2020-07-10 18:50:51 +02:00
|
|
|
- name: Install dependencies
|
2022-02-20 10:39:33 +01:00
|
|
|
run: pip install -r requirements.txt -r requirements_test.txt
|
|
|
|
- name: Register problem matchers
|
2020-07-10 18:50:51 +02:00
|
|
|
run: |
|
2022-02-20 10:39:33 +01:00
|
|
|
echo "::add-matcher::.github/workflows/matchers/ci-custom.json"
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: python lint.py
|
|
|
|
- name: html-strict
|
|
|
|
run: make html-strict
|