-
Notifications
You must be signed in to change notification settings - Fork 0
146 lines (136 loc) · 4.15 KB
/
Pipeline.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
name: Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '35 19 10 * *' # 10th of the month at 7:35pm UTC
workflow_dispatch:
jobs:
# This job is a workaround for global variables
# See https://github.com/actions/runner/issues/480
Params:
uses: Elmeric/my-gha-workflows/.github/workflows/Parameters.yml@dev
with:
name: Trio-Engineio
# Optional
system_list: 'ubuntu windows macos'
python_version: '3.11'
python_version_list: '3.7 3.8 3.9 3.10 3.11'
exclude_list: "windows:3.7 windows:3.8 windows:3.9 windows:3.10 macos:3.7 macos:3.8 macos:3.9 macos:3.10"
CodeCheck:
uses: Elmeric/my-gha-workflows/.github/workflows/CodeCheck.yml@dev
needs:
- Params
with:
poetry-version: "1.2.2"
commands: inv checks.all
# Optional
python_version: "3.11"
UnitTesting:
uses: Elmeric/my-gha-workflows/.github/workflows/UnitTesting.yml@dev
needs:
- Params
- CodeCheck
with:
jobs: ${{ needs.Params.outputs.python_jobs }}
poetry-version: "1.2.2"
commands: inv test -c trio_engineio --lcov
Coverage:
uses: Elmeric/my-gha-workflows/.github/workflows/CoverageCollection.yml@dev
needs:
- Params
- UnitTesting
# PublishTestResults:
# uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@main
# needs:
# - UnitTesting
# - StaticTypeCheck
# with:
# # Optional
# report_files: artifacts/**/*.xml
#
# Package:
# uses: pyTooling/Actions/.github/workflows/Package.yml@main
# needs:
# - Params
# - Coverage
# with:
# artifact: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }}
# # Optional
# python_version: ${{ needs..Params.outputs.python_version }}
# requirements: 'wheel'
#
# Release:
# uses: pyTooling/Actions/.github/workflows/Release.yml@main
# if: startsWith(github.ref, 'refs/tags')
# needs:
# - UnitTesting
# - Coverage
# - StaticTypeCheck
# - Package
#
# PublishOnPyPI:
# uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@main
# if: startsWith(github.ref, 'refs/tags')
# needs:
# - Params
# - Release
# - Package
# with:
# artifact: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }}
# # Optional
# python_version: ${{ needs..Params.outputs.python_version }}
# requirements: 'wheel twine'
# secrets:
# PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
#
# VerifyDocs:
# uses: pyTooling/Actions/.github/workflows/VerifyDocs.yml@main
# needs:
# - Params
# with:
# # Optional
# python_version: ${{ needs..Params.outputs.python_version }}
#
# BuildTheDocs:
# uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@main
# needs:
# - Params
# - VerifyDocs
# with:
# artifact: ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }}
#
# PublishToGitHubPages:
# uses: pyTooling/Actions/.github/workflows/PublishToGitHubPages.yml@main
# needs:
# - Params
# - BuildTheDocs
# - Coverage
# - StaticTypeCheck
# with:
# doc: ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }}
# # Optional
# coverage: ${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }}
# typing: ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }}
#
# ArtifactCleanUp:
# uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@main
# needs:
# - Params
# - PublishTestResults
# - Coverage
# - StaticTypeCheck
# - BuildTheDocs
# - PublishToGitHubPages
# with:
# package: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }}
# remaining: |
# ${{ fromJson(needs.Params.outputs.artifact_names).unittesting_xml }}-*
# ${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }}
# ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }}
# ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_junit }}
# ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }}