-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (87 loc) · 2.19 KB
/
release.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: "Release"
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
build:
uses: ZeroGachis/.github/.github/workflows/build-image.yml@v3
with:
image_name: magicparse
dockerfile_context: .
environment_name: main
vault_github_actions_role: ${{ vars.VAULT_GITHUB_ACTIONS_ROLE }}
regitry_url: ghcr.io
secrets: inherit
static-metrics:
needs:
[
build,
]
uses: ZeroGachis/.github/.github/workflows/run-docker.yml@v3
with:
image_url: ${{ needs.build.outputs.image-url }}
workdir: /home/src/magicparse
environment_name: main
vault_enabled: false
tailscale_enabled: false
run_command: |
black magicparse/ --check --diff
flake8
secrets: inherit
unit-tests:
needs:
[
build,
]
uses: ZeroGachis/.github/.github/workflows/run-docker-with-db.yml@v3
with:
image_url: ${{ needs.build.outputs.image-url }}
workdir: /home/src/magicparse
run_command: |
pytest --verbose --junit-xml reports/unit_tests_results.xml
environment_name: main
vault_enabled: false
tailscale_enabled: false
enable_test_report: true
test_report_name: "UT Report"
test_report_path: reports/unit_tests_results.xml
test_report_format: java-junit
secrets: inherit
publish:
needs:
[
build,
unit-tests,
static-metrics,
]
uses: ZeroGachis/.github/.github/workflows/python-publish.yml@v3
with:
python_version: "3.10"
environment_name: main
github-release:
needs: [
build,
static-metrics,
unit-tests,
publish,
]
uses: ZeroGachis/.github/.github/workflows/gh-release-notes.yml@v3
detroy:
if: always()
needs:
[
build,
unit-tests,
static-metrics,
publish,
github-release,
]
uses: ZeroGachis/.github/.github/workflows/delete-docker-image.yml@v3
with:
image_name: magicparse
image_version: ${{ needs.build.outputs.image-version }}
environment_name: main
vault_github_actions_role: ${{ vars.VAULT_GITHUB_ACTIONS_ROLE }}
secrets: inherit