2021-05-26 05:55:54 -07:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
|
2023-05-31 01:19:34 -07:00
|
|
|
env:
|
|
|
|
PYTHON_MIN_VERSION: "3.7.13"
|
2021-05-26 05:55:54 -07:00
|
|
|
|
2023-05-31 01:19:34 -07:00
|
|
|
jobs:
|
|
|
|
asdf:
|
2022-12-23 02:53:22 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-31 01:19:34 -07:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: asdf-vm/actions/install@v2
|
|
|
|
- uses: actions/setup-python@v4
|
2023-01-22 09:01:42 -07:00
|
|
|
with:
|
2023-05-31 01:19:34 -07:00
|
|
|
python-version: ${{ env.PYTHON_MIN_VERSION }}
|
|
|
|
- run: scripts/install_dependencies.bash
|
|
|
|
- run: scripts/lint.bash --check
|
2022-12-23 02:53:22 -07:00
|
|
|
|
2023-05-31 01:19:34 -07:00
|
|
|
actions:
|
2023-01-22 08:36:43 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-31 01:19:34 -07:00
|
|
|
- uses: actions/checkout@v3
|
2023-01-22 08:36:43 -07:00
|
|
|
- name: Check workflow files
|
2023-05-31 01:19:34 -07:00
|
|
|
uses: docker://rhysd/actionlint:1.6.24
|
2023-01-22 08:36:43 -07:00
|
|
|
with:
|
|
|
|
args: -color
|