|
4 | 4 | push:
|
5 | 5 | workflow_dispatch:
|
6 | 6 | schedule:
|
7 |
| - - cron: '0 0 * * 5' |
| 7 | +# Every Friday at 22:00 - rerun pipeline to check for dependency-based issues |
| 8 | + - cron: '0 22 * * 5' |
8 | 9 |
|
9 | 10 | jobs:
|
10 |
| - |
11 |
| - Params: |
| 11 | + UnitTestingParams: |
12 | 12 | uses: pyTooling/Actions/.github/workflows/Parameters.yml@dev
|
13 | 13 | with:
|
14 | 14 | name: pySystemRDLModel
|
15 | 15 |
|
16 | 16 | UnitTesting:
|
17 | 17 | uses: pyTooling/Actions/.github/workflows/UnitTesting.yml@dev
|
18 | 18 | needs:
|
19 |
| - - Params |
| 19 | + - UnitTestingParams |
20 | 20 | with:
|
21 |
| - jobs: ${{ needs.Params.outputs.python_jobs }} |
22 |
| - artifact: ${{ fromJson(needs.Params.outputs.artifact_names).unittesting_xml }} |
23 |
| - |
24 |
| - Coverage: |
25 |
| - uses: pyTooling/Actions/.github/workflows/CoverageCollection.yml@dev |
26 |
| - needs: |
27 |
| - - Params |
28 |
| - with: |
29 |
| - python_version: ${{ needs.Params.outputs.python_version }} |
30 |
| - artifact: ${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }} |
31 |
| - secrets: |
32 |
| - codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} |
| 21 | + jobs: ${{ needs.UnitTestingParams.outputs.python_jobs }} |
| 22 | + requirements: "-r tests/unit/requirements.txt" |
| 23 | +# pacboy: "msys/git" |
| 24 | + unittest_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }} |
| 25 | + coverage_sqlite_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }} |
33 | 26 |
|
34 | 27 | StaticTypeCheck:
|
35 | 28 | uses: pyTooling/Actions/.github/workflows/StaticTypeCheck.yml@dev
|
36 | 29 | needs:
|
37 |
| - - Params |
| 30 | + - UnitTestingParams |
38 | 31 | with:
|
39 |
| - python_version: ${{ needs.Params.outputs.python_version }} |
| 32 | + python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
40 | 33 | commands: |
|
41 | 34 | mypy --html-report htmlmypy -p pySystemRDLModel
|
42 |
| - html_artifact: ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }} |
| 35 | + html_report: 'htmlmypy' |
| 36 | + html_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }} |
43 | 37 |
|
44 |
| - PublishTestResults: |
45 |
| - uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@dev |
| 38 | + DocCoverage: |
| 39 | + uses: pyTooling/Actions/.github/workflows/CheckDocumentation.yml@dev |
46 | 40 | needs:
|
47 |
| - - UnitTesting |
| 41 | + - UnitTestingParams |
| 42 | + with: |
| 43 | + python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
| 44 | + directory: pySystemRDLModel |
| 45 | +# fail_below: 70 |
| 46 | + |
| 47 | + ConfigParams: |
| 48 | + uses: pyTooling/Actions/.github/workflows/ExtractConfiguration.yml@dev |
| 49 | + needs: |
| 50 | + - DocCoverage |
48 | 51 |
|
49 | 52 | Package:
|
50 | 53 | uses: pyTooling/Actions/.github/workflows/Package.yml@dev
|
51 | 54 | needs:
|
52 |
| - - Params |
53 |
| - - Coverage |
| 55 | + - UnitTestingParams |
| 56 | + - UnitTesting |
54 | 57 | with:
|
55 |
| - python_version: ${{ needs.Params.outputs.python_version }} |
56 |
| - artifact: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }} |
| 58 | + python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
| 59 | + artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }} |
57 | 60 |
|
58 |
| - Release: |
59 |
| - uses: pyTooling/Actions/.github/workflows/Release.yml@dev |
60 |
| - if: startsWith(github.ref, 'refs/tags') |
| 61 | + PublishCoverageResults: |
| 62 | + uses: pyTooling/Actions/.github/workflows/PublishCoverageResults.yml@dev |
61 | 63 | needs:
|
| 64 | + - UnitTestingParams |
62 | 65 | - UnitTesting
|
63 |
| - - Coverage |
64 |
| - - StaticTypeCheck |
65 |
| - - Package |
| 66 | + with: |
| 67 | +# coverage_sqlite_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }} |
| 68 | +# coverage_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_xml }} |
| 69 | + coverage_json_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }} |
| 70 | + coverage_html_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }} |
| 71 | + secrets: |
| 72 | + codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} |
66 | 73 |
|
67 |
| - PublishOnPyPI: |
68 |
| - uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev |
69 |
| - if: startsWith(github.ref, 'refs/tags') |
| 74 | + PublishTestResults: |
| 75 | + uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@dev |
70 | 76 | needs:
|
71 |
| - - Params |
72 |
| - - Release |
73 |
| - - Package |
| 77 | + - UnitTestingParams |
| 78 | + - UnitTesting |
74 | 79 | with:
|
75 |
| - python_version: ${{ needs.Params.outputs.python_version }} |
76 |
| - requirements: -r dist/requirements.txt |
77 |
| - artifact: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }} |
78 |
| - secrets: |
79 |
| - PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |
| 80 | + merged_junit_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }} |
80 | 81 |
|
81 | 82 | # VerifyDocs:
|
82 | 83 | # uses: pyTooling/Actions/.github/workflows/VerifyDocs.yml@dev
|
83 | 84 | # needs:
|
84 |
| -# - Params |
| 85 | +# - UnitTestingParams |
85 | 86 | # with:
|
86 |
| -# python_version: ${{ needs.Params.outputs.python_version }} |
| 87 | +# python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
87 | 88 |
|
88 |
| - BuildTheDocs: |
89 |
| - uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@dev |
| 89 | + Documentation: |
| 90 | + uses: pyTooling/Actions/.github/workflows/SphinxDocumentation.yml@dev |
90 | 91 | needs:
|
91 |
| - - Params |
| 92 | + - UnitTestingParams |
| 93 | + - ConfigParams |
| 94 | + - PublishTestResults |
| 95 | + - PublishCoverageResults |
92 | 96 | # - VerifyDocs
|
93 | 97 | with:
|
94 |
| - artifact: ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }} |
| 98 | + python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
| 99 | + coverage_report_json_directory: ${{ needs.ConfigParams.outputs.coverage_report_json_directory }} |
| 100 | + unittest_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}-ubuntu-native-3.12 |
| 101 | + coverage_json_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }} |
| 102 | + html_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }} |
| 103 | + latex_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }} |
| 104 | + |
| 105 | + IntermediateCleanUp: |
| 106 | + uses: pyTooling/Actions/.github/workflows/IntermediateCleanUp.yml@dev |
| 107 | + needs: |
| 108 | + - UnitTestingParams |
| 109 | + - PublishCoverageResults |
| 110 | + - PublishTestResults |
| 111 | + - Documentation |
| 112 | + with: |
| 113 | + sqlite_coverage_artifacts_prefix: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }}- |
| 114 | + xml_unittest_artifacts_prefix: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}- |
| 115 | + |
| 116 | +# PDFDocumentation: |
| 117 | +# uses: pyTooling/Actions/.github/workflows/LaTeXDocumentation.yml@dev |
| 118 | +# needs: |
| 119 | +# - UnitTestingParams |
| 120 | +# - Documentation |
| 121 | +# with: |
| 122 | +# document: pySystemRDLModel |
| 123 | +# latex_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }} |
| 124 | +# pdf_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_pdf }} |
95 | 125 |
|
96 | 126 | PublishToGitHubPages:
|
97 | 127 | uses: pyTooling/Actions/.github/workflows/PublishToGitHubPages.yml@dev
|
98 | 128 | needs:
|
99 |
| - - Params |
100 |
| - - BuildTheDocs |
101 |
| - - Coverage |
| 129 | + - UnitTestingParams |
| 130 | + - Documentation |
| 131 | +# - PDFDocumentation |
| 132 | + - PublishCoverageResults |
102 | 133 | - StaticTypeCheck
|
103 | 134 | with:
|
104 |
| - doc: ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }} |
105 |
| - coverage: ${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }} |
106 |
| - typing: ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }} |
| 135 | + doc: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }} |
| 136 | +# coverage: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }} |
| 137 | + typing: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }} |
| 138 | + |
| 139 | + ReleasePage: |
| 140 | + uses: pyTooling/Actions/.github/workflows/Release.yml@dev |
| 141 | + if: startsWith(github.ref, 'refs/tags') |
| 142 | + needs: |
| 143 | + - Package |
| 144 | + - PublishToGitHubPages |
| 145 | + |
| 146 | + PublishOnPyPI: |
| 147 | + uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev |
| 148 | + if: startsWith(github.ref, 'refs/tags') |
| 149 | + needs: |
| 150 | + - UnitTestingParams |
| 151 | + - ReleasePage |
| 152 | + with: |
| 153 | + python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
| 154 | + requirements: -r dist/requirements.txt |
| 155 | + artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }} |
| 156 | + secrets: |
| 157 | + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |
107 | 158 |
|
108 | 159 | ArtifactCleanUp:
|
109 | 160 | uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@dev
|
110 | 161 | needs:
|
111 |
| - - Params |
| 162 | + - UnitTestingParams |
112 | 163 | - UnitTesting
|
113 |
| - - Coverage |
114 | 164 | - StaticTypeCheck
|
115 |
| - - BuildTheDocs |
116 |
| - - PublishToGitHubPages |
| 165 | + - Documentation |
| 166 | +# - PDFDocumentation |
117 | 167 | - PublishTestResults
|
| 168 | + - PublishCoverageResults |
| 169 | + - PublishToGitHubPages |
| 170 | +# - PublishOnPyPI |
118 | 171 | with:
|
119 |
| - package: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }} |
| 172 | + package: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }} |
120 | 173 | remaining: |
|
121 |
| - ${{ fromJson(needs.Params.outputs.artifact_names).unittesting_xml }}-* |
122 |
| - ${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }} |
123 |
| - ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }} |
124 |
| - ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }} |
| 174 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}-* |
| 175 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_html }}-* |
| 176 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }}-* |
| 177 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_xml }}-* |
| 178 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }}-* |
| 179 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }}-* |
| 180 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }} |
| 181 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_html }} |
| 182 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }} |
| 183 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_xml }} |
| 184 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }} |
| 185 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }} |
| 186 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }} |
| 187 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }} |
| 188 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }} |
| 189 | +# ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_pdf }} |
0 commit comments