-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 966 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Lint checks
on:
pull_request:
branches:
- main
schedule:
- cron: "35 4 * * 6"
jobs:
preflight:
runs-on: ubuntu-22.04
outputs:
image_base: ${{ steps.details.outputs.image_base }}
need_lint: ${{ steps.preflight.outputs.need_lint == 'true' }}
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- id: details
uses: kpfleming/composite-actions/image-details@v2
with:
base_image: python:bookworm-main
- id: preflight
uses: kpfleming/composite-actions/lint-preflight@v2
with:
lint_paths: workflow-support/lint_paths.yml
lint:
if: needs.preflight.outputs.need_lint == 'true'
runs-on: ubuntu-22.04
needs:
- preflight
container:
image: ${{ needs.preflight.outputs.image_base }}:main
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- uses: kpfleming/composite-actions/lint-hatch@v2