-
Notifications
You must be signed in to change notification settings - Fork 167
56 lines (49 loc) · 1.34 KB
/
ci.yml
File metadata and controls
56 lines (49 loc) · 1.34 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
run-name: >
CI (${{ github.event_name }})
${{ github.event_name == 'pull_request' && format('PR#{0}', github.event.number) || '' }}
${{ github.event_name == 'workflow_dispatch' && inputs.ref || '' }}
on:
pull_request:
push:
branches: [ main ]
workflow_dispatch:
inputs:
ref:
type: string
description: Committish to checkout and run CI against
permissions: {}
jobs:
pre-commit:
uses: ./.github/workflows/step-pre-commit.yml
with:
ref: ${{ inputs.ref }}
build-wheel:
uses: ./.github/workflows/step-build-wheel.yml
with:
ref: ${{ inputs.ref }}
needs: [ pre-commit ]
shellcheck:
uses: ./.github/workflows/step-shellcheck.yml
with:
ref: ${{ inputs.ref }}
upload_sarif: ${{ github.event_name != 'pull_request' }}
needs: [ pre-commit ]
permissions:
# needed by upload-sarif job (and only conditionally)
security-events: write
doc-tests:
name: 📘 docs
uses: ./.github/workflows/step-doc-tests.yml
with:
ref: ${{ inputs.ref }}
needs: [ pre-commit ]
overall-outcome:
name: GitHub Actions Overall Outcome
if: always()
needs: [ pre-commit, build-wheel, shellcheck, doc-tests ]
runs-on: ubuntu-slim
steps:
- uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}