-
Notifications
You must be signed in to change notification settings - Fork 6
91 lines (83 loc) · 2.79 KB
/
verify.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2024 The Linux Foundation
name: "🤖 DevOps Automation [Verify]"
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- main
- master
permissions: {}
jobs:
repository:
name: "Repository"
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/repository.yaml@6ec49941000685790f083eb83f97efd26c4b37a6 # 2024-01-14
permissions:
contents: read
python-project:
name: "Python project"
needs: repository
if: needs.repository.outputs.python_project == 'true'
runs-on: ubuntu-24.04
outputs:
matrix_json: ${{ steps.python-project.outputs.matrix_json }}
artefact_path: ${{ steps.python-project.outputs.artefact_path }}
permissions:
contents: read
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: "Build Python project"
id: python-project
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/actions/python-project-build@1cc4e4a286ca57f407d88e1fad41070844d378c2 # 2024-01-14
with:
build_tag: ${{ needs.repository.outputs.build_tag }}
python-test:
name: "Test"
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/python-tests.yaml@6ec49941000685790f083eb83f97efd26c4b37a6 # 2024-01-14
needs:
- python-project
# Matrix job
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.python-project.outputs.matrix_json) }}
with:
python_version: ${{ matrix.python-version }}
permissions:
contents: read
python-security:
name: "Security"
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/python-security.yaml@6ec49941000685790f083eb83f97efd26c4b37a6 # 2024-01-14
needs:
- python-project
# Matrix job
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.python-project.outputs.matrix_json) }}
with:
python_version: ${{ matrix.python-version }}
permissions:
contents: read
notebooks:
name: "Jupyter notebooks"
if: needs.repository.outputs.jupyter_notebooks == 'true'
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/jupyter-notebooks.yaml@6ec49941000685790f083eb83f97efd26c4b37a6 # 2024-01-14
needs:
- repository
- python-project
# Matrix job
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.python-project.outputs.matrix_json) }}
with:
python_version: ${{ matrix.python-version }}
permissions:
contents: read