|
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: |
| 11 | + UnitTestingParams: |
| 12 | + uses: pyTooling/Actions/.github/workflows/Parameters.yml@r1 |
| 13 | + with: |
| 14 | + name: pyEDAA.ProjectModel |
| 15 | + python_version_list: "3.9 3.10 3.11 3.12 pypy-3.9 pypy-3.10" |
| 16 | + disable_list: "mingw64:* ucrt64:*" |
10 | 17 |
|
11 | | - Params: |
| 18 | + AppTestingParams: |
12 | 19 | uses: pyTooling/Actions/.github/workflows/Parameters.yml@dev |
13 | 20 | with: |
14 | 21 | name: pyEDAA.ProjectModel |
| 22 | + python_version_list: "" # use latest Python version |
| 23 | + system_list: "ubuntu macos macos-arm" |
| 24 | +# include_list: |
| 25 | +# exclude_list: |
| 26 | +# disable_list: "windows:pypy-3.8 windows:pypy-3.9 windows:pypy-3.10" |
15 | 27 |
|
16 | 28 | UnitTesting: |
17 | 29 | uses: pyTooling/Actions/.github/workflows/UnitTesting.yml@dev |
18 | 30 | needs: |
19 | | - - Params |
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 |
| 31 | + - UnitTestingParams |
28 | 32 | 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 }} |
| 33 | + jobs: ${{ needs.UnitTestingParams.outputs.python_jobs }} |
| 34 | + requirements: "-r tests/unit/requirements.txt" |
| 35 | +# pacboy: "msys/git python-lxml:p" |
| 36 | + unittest_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }} |
| 37 | + coverage_sqlite_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }} |
33 | 38 |
|
34 | 39 | StaticTypeCheck: |
35 | | - uses: pyTooling/Actions/.github/workflows/StaticTypeCheck.yml@dev |
| 40 | + uses: pyTooling/Actions/.github/workflows/StaticTypeCheck.yml@r1 |
36 | 41 | needs: |
37 | | - - Params |
| 42 | + - UnitTestingParams |
38 | 43 | with: |
39 | | - python_version: ${{ needs.Params.outputs.python_version }} |
| 44 | + python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
40 | 45 | commands: | |
41 | | - cd pyEDAA |
42 | | - mypy --html-report ../htmlmypy -p ProjectModel |
43 | | - html_artifact: ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }} |
| 46 | + touch pyEDAA/__init__.py |
| 47 | + mypy --html-report htmlmypy -p pyEDAA.ProjectModel |
| 48 | + html_report: 'htmlmypy' |
| 49 | + html_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }} |
44 | 50 |
|
45 | | - PublishTestResults: |
46 | | - uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@dev |
| 51 | + DocCoverage: |
| 52 | + uses: pyTooling/Actions/.github/workflows/CheckDocumentation.yml@r1 |
47 | 53 | needs: |
48 | | - - UnitTesting |
| 54 | + - UnitTestingParams |
49 | 55 | with: |
50 | | - additional_merge_args: '"--pytest=rewrite-dunder-init;reduce-depth:pytest.tests.unit"' |
| 56 | + python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
| 57 | + directory: pyEDAA/ProjectModel |
| 58 | +# fail_below: 70 |
51 | 59 |
|
52 | 60 | Package: |
53 | | - uses: pyTooling/Actions/.github/workflows/Package.yml@dev |
| 61 | + uses: pyTooling/Actions/.github/workflows/Package.yml@r1 |
54 | 62 | needs: |
55 | | - - Params |
56 | | - - Coverage |
| 63 | + - UnitTestingParams |
| 64 | + - UnitTesting |
57 | 65 | with: |
58 | | - python_version: ${{ needs.Params.outputs.python_version }} |
59 | | - artifact: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }} |
| 66 | + python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
| 67 | + artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }} |
60 | 68 |
|
61 | | - Release: |
62 | | - uses: pyTooling/Actions/.github/workflows/Release.yml@dev |
63 | | - if: startsWith(github.ref, 'refs/tags') |
| 69 | + AppTesting: |
| 70 | + uses: pyTooling/Actions/.github/workflows/ApplicationTesting.yml@r1 |
64 | 71 | needs: |
65 | | - - UnitTesting |
66 | | - - Coverage |
67 | | - - StaticTypeCheck |
| 72 | + - AppTestingParams |
| 73 | + - UnitTestingParams |
68 | 74 | - Package |
| 75 | + with: |
| 76 | + jobs: ${{ needs.AppTestingParams.outputs.python_jobs }} |
| 77 | + wheel: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }} |
| 78 | + apptest_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).apptesting_xml }} |
69 | 79 |
|
70 | | - PublishOnPyPI: |
71 | | - uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev |
72 | | - if: startsWith(github.ref, 'refs/tags') |
| 80 | + PublishCoverageResults: |
| 81 | + uses: pyTooling/Actions/.github/workflows/PublishCoverageResults.yml@r1 |
73 | 82 | needs: |
74 | | - - Params |
75 | | - - Release |
76 | | - - Package |
| 83 | + - UnitTestingParams |
| 84 | + - UnitTesting |
77 | 85 | with: |
78 | | - python_version: ${{ needs.Params.outputs.python_version }} |
79 | | - requirements: -r dist/requirements.txt |
80 | | - artifact: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }} |
| 86 | +# coverage_sqlite_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }} |
| 87 | +# coverage_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_xml }} |
| 88 | + coverage_json_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }} |
| 89 | + coverage_html_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }} |
81 | 90 | secrets: |
82 | | - PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |
| 91 | + codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} |
83 | 92 |
|
84 | | - VerifyDocs: |
85 | | - uses: pyTooling/Actions/.github/workflows/VerifyDocs.yml@dev |
| 93 | + PublishTestResults: |
| 94 | + uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@dev |
86 | 95 | needs: |
87 | | - - Params |
| 96 | + - UnitTestingParams |
| 97 | + - UnitTesting |
| 98 | + with: |
| 99 | + merged_junit_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }} |
| 100 | + |
| 101 | +# VerifyDocs: |
| 102 | +# uses: pyTooling/Actions/.github/workflows/VerifyDocs.yml@r1 |
| 103 | +# needs: |
| 104 | +# - UnitTestingParams |
| 105 | +# with: |
| 106 | +# python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
| 107 | + |
| 108 | + HTMLDocumentation: |
| 109 | + uses: pyTooling/Actions/.github/workflows/SphinxDocumentation.yml@r1 |
| 110 | + needs: |
| 111 | + - UnitTestingParams |
| 112 | + - PublishTestResults |
| 113 | + - PublishCoverageResults |
| 114 | +# - VerifyDocs |
88 | 115 | with: |
89 | | - python_version: ${{ needs.Params.outputs.python_version }} |
| 116 | + python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
| 117 | + unittest_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}-ubuntu-native-3.12 |
| 118 | + coverage_json_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }} |
| 119 | + html_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }} |
| 120 | + latex_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }} |
90 | 121 |
|
91 | | - BuildTheDocs: |
92 | | - uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@dev |
| 122 | + IntermediateCleanUp: |
| 123 | + uses: pyTooling/Actions/.github/workflows/IntermediateCleanUp.yml@r1 |
93 | 124 | needs: |
94 | | - - Params |
95 | | - - VerifyDocs |
| 125 | + - UnitTestingParams |
| 126 | + - PublishCoverageResults |
| 127 | + - PublishTestResults |
| 128 | + - HTMLDocumentation |
96 | 129 | with: |
97 | | - artifact: ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }} |
| 130 | + sqlite_coverage_artifacts_prefix: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }}- |
| 131 | + xml_unittest_artifacts_prefix: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}- |
| 132 | + |
| 133 | +# PDFDocumentation: |
| 134 | +# uses: pyTooling/Actions/.github/workflows/LaTeXDocumentation.yml@r1 |
| 135 | +# needs: |
| 136 | +# - UnitTestingParams |
| 137 | +# - HTMLDocumentation |
| 138 | +# with: |
| 139 | +# document: pyEDAA.ProjectModel |
| 140 | +# latex_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }} |
| 141 | +# pdf_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_pdf }} |
98 | 142 |
|
99 | 143 | PublishToGitHubPages: |
100 | | - uses: pyTooling/Actions/.github/workflows/PublishToGitHubPages.yml@dev |
| 144 | + uses: pyTooling/Actions/.github/workflows/PublishToGitHubPages.yml@r1 |
101 | 145 | needs: |
102 | | - - Params |
103 | | - - BuildTheDocs |
104 | | - - Coverage |
| 146 | + - UnitTestingParams |
| 147 | + - HTMLDocumentation |
| 148 | +# - PDFDocumentation |
| 149 | + - PublishCoverageResults |
105 | 150 | - StaticTypeCheck |
106 | 151 | with: |
107 | | - doc: ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }} |
108 | | - coverage: ${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }} |
109 | | - typing: ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }} |
| 152 | + doc: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }} |
| 153 | + coverage: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }} |
| 154 | + typing: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }} |
| 155 | + |
| 156 | + ReleasePage: |
| 157 | + uses: pyTooling/Actions/.github/workflows/Release.yml@r1 |
| 158 | + if: startsWith(github.ref, 'refs/tags') |
| 159 | + needs: |
| 160 | + - Package |
| 161 | + - AppTesting |
| 162 | + - PublishToGitHubPages |
| 163 | + |
| 164 | + PublishOnPyPI: |
| 165 | + uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@r1 |
| 166 | + if: startsWith(github.ref, 'refs/tags') |
| 167 | + needs: |
| 168 | + - UnitTestingParams |
| 169 | + - ReleasePage |
| 170 | + with: |
| 171 | + python_version: ${{ needs.UnitTestingParams.outputs.python_version }} |
| 172 | + requirements: -r dist/requirements.txt |
| 173 | + artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }} |
| 174 | + secrets: |
| 175 | + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |
110 | 176 |
|
111 | 177 | ArtifactCleanUp: |
112 | | - uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@dev |
| 178 | + uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@r1 |
113 | 179 | needs: |
114 | | - - Params |
| 180 | + - UnitTestingParams |
115 | 181 | - UnitTesting |
116 | | - - Coverage |
117 | 182 | - StaticTypeCheck |
118 | | - - BuildTheDocs |
119 | | - - PublishToGitHubPages |
| 183 | + - HTMLDocumentation |
| 184 | +# - PDFDocumentation |
120 | 185 | - PublishTestResults |
| 186 | + - PublishCoverageResults |
| 187 | + - PublishToGitHubPages |
| 188 | +# - PublishOnPyPI |
| 189 | + - IntermediateCleanUp |
121 | 190 | with: |
122 | | - package: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }} |
| 191 | + package: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }} |
123 | 192 | remaining: | |
124 | | - ${{ fromJson(needs.Params.outputs.artifact_names).unittesting_xml }}-* |
125 | | - ${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }} |
126 | | - ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }} |
127 | | - ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }} |
| 193 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_html }}-* |
| 194 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_xml }}-* |
| 195 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }}-* |
| 196 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }}-* |
| 197 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }} |
| 198 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_html }} |
| 199 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }} |
| 200 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_xml }} |
| 201 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }} |
| 202 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }} |
| 203 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }} |
| 204 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }} |
| 205 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }} |
| 206 | + ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).apptesting_xml }}-* |
| 207 | +# ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_pdf }} |
0 commit comments