-
Notifications
You must be signed in to change notification settings - Fork 9
72 lines (62 loc) · 1.93 KB
/
build_on_push_pr.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
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
name: Build package on Push or Pull Request
on:
push
jobs:
Prepare:
name: 'Prepare'
uses: Ultimaker/embedded-workflows/.github/workflows/prepare_env.yml@main
with:
BUILD_DOCKER_CACHE: true
secrets: inherit
Shellcheck:
name: 'Test'
needs: Prepare
uses: Ultimaker/embedded-workflows/.github/workflows/shellcheck.yml@main
secrets: inherit
Flake8:
name: 'Test'
needs: Prepare
uses: Ultimaker/python-quality-control/.github/workflows/flake8.yml@master
with:
PARENT_BRANCH: 'master/s-line'
secrets: inherit
MyPy:
name: 'Test'
needs: Prepare
uses: Ultimaker/python-quality-control/.github/workflows/mypy.yml@master
with:
PARENT_BRANCH: 'master/s-line'
secrets: inherit
PyCodeStyle:
name: 'Test'
needs: Prepare
uses: Ultimaker/python-quality-control/.github/workflows/pycodestyle.yml@master
with:
PARENT_BRANCH: 'master/s-line'
secrets: inherit
Vulture:
name: 'Test'
needs: Prepare
uses: Ultimaker/python-quality-control/.github/workflows/vulture.yml@master
secrets: inherit
PyTest:
name: 'Test'
needs: Prepare
uses: Ultimaker/python-quality-control/.github/workflows/pytest.yml@master
secrets: inherit
Build:
name: 'Build'
needs: Prepare
uses: Ultimaker/embedded-workflows/.github/workflows/build.yml@main
with:
RELEASE_VERSION: ${{ needs.Prepare.outputs.RELEASE_VERSION }}
secrets: inherit
Release_Package:
name: 'Release'
needs: [Prepare, Shellcheck, Build, Flake8, MyPy, PyCodeStyle, Vulture, PyTest]
if: ${{ (success() && needs.Prepare.outputs.RELEASE_REPO != 'none') ||
(failure() && needs.Build.result == 'success' && needs.Prepare.outputs.RELEASE_REPO == 'packages-dev') }}
uses: Ultimaker/embedded-workflows/.github/workflows/release_pkg.yml@main
with:
RELEASE_REPO: ${{ needs.Prepare.outputs.RELEASE_REPO }}
secrets: inherit