Skip to content

Commit fabea66

Browse files
committed
Allow to enabled/disable MiKTeX updates. default: disabled
1 parent d3dbddf commit fabea66

6 files changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/CompletePipeline.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ on:
128128
required: false
129129
default: 'pytooling/miktex:sphinx'
130130
type: string
131+
miktex_update:
132+
description: 'Update MiKTeX packages.'
133+
required: false
134+
default: 'false'
135+
type: string
131136
auto_tag:
132137
description: 'Auto tag if a branch was merged to the release branch and an associated pull-request with matching version name was found.'
133138
required: false
@@ -415,6 +420,7 @@ jobs:
415420
pdf_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_pdf }}
416421
can-fail: 'true'
417422
miktex_image: ${{ inputs.miktex_image }}
423+
update: ${{ inputs.miktex_update }}
418424

419425
PublishToGitHubPages:
420426
uses: pyTooling/Actions/.github/workflows/PublishToGitHubPages.yml@dev

.github/workflows/LaTeXDocumentation.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ on:
4242
required: false
4343
default: 'pytooling/miktex:sphinx'
4444
type: string
45+
update:
46+
description: 'Update MiKTeX packages.'
47+
required: false
48+
default: 'false'
49+
type: string
4550
processor:
4651
description: 'Name of the used LaTeX processor.'
4752
required: false
@@ -79,10 +84,15 @@ jobs:
7984
investigate: 'true'
8085

8186
- name: ⚙️ Update
87+
if: inputs.update == 'true'
8288
run: |
89+
printf -- "Update package database (miktex --admin packages update-package-database) ...\n"
8390
sudo miktex --admin packages update-package-database
91+
printf -- "Update packages (miktex --admin packages update) ...\n"
8492
sudo miktex --admin packages update
93+
printf -- "Update filename database (initexmf --admin --updatefndb) ...\n"
8594
sudo initexmf --admin --update-fndb
95+
printf -- "DONE\n"
8696
8797
- name: 📖 Build LaTeX document using 'pytooling/miktex:sphinx'
8898
if: inputs.pdf_artifact != ''

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Find further usage cases in the following list of projects:
120120

121121
## License
122122

123-
This Python package (source code) licensed under [Apache License 2.0](LICENSE.md).
123+
This Python package (source code) is licensed under [Apache License 2.0](LICENSE.md).
124124
The accompanying documentation is licensed under [Creative Commons - Attribution 4.0 (CC-BY 4.0)](doc/Doc-License.rst).
125125

126126
---

doc/Glossary.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Glossary
3939

4040
:Source Code: `github.com/GeekyEggo/delete-artifact/ <https://github.com/GeekyEggo/delete-artifact/>`__
4141
:Marketplace: `github.com/marketplace/actions/delete-artifact/ <https://github.com/marketplace/actions/delete-artifact/>`__
42-
:README: `github.com/GeekyEggo/delete-artifact README.md <https://github.com/GeekyEggo/delete-artifact/blob/main/README.md>`__
42+
:README: `github.com/GeekyEggo/delete-artifact README.md <https://github.com/GeekyEggo/delete-artifact/blob/main/README.md>`__
4343

4444
docstr_coverage
4545
Docstring coverage analysis and rating for Python.
@@ -118,7 +118,7 @@ Glossary
118118

119119
:Source Code: `github.com/dorny/test-reporter/ <https://github.com/dorny/test-reporter/>`__
120120
:Marketplace: `github.com/marketplace/actions/test-reporter/ <https://github.com/marketplace/actions/test-reporter/>`__
121-
:README: `github.com/dorny/test-reporter README.md <https://github.com/dorny/test-reporter/blob/main/README.md>`__
121+
:README: `github.com/dorny/test-reporter README.md <https://github.com/dorny/test-reporter/blob/main/README.md>`__
122122

123123
twine
124124
Utilities for interacting with PyPI.

doc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ sphinxcontrib-mermaid ~= 2.0
1515
autoapi >= 2.0.1
1616
sphinx_design ~= 0.7.0
1717
sphinx-copybutton >= 0.5.2
18-
sphinx_autodoc_typehints ~= 3.5 # 3.9 is conflicting with old sphinx_design and rtd theme due to sphinx<9 and docutils<0.22
18+
sphinx_autodoc_typehints ~= 3.10
1919
sphinx_reports ~= 0.10.0

tests/unit/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Coverage ~= 7.13
55

66
# Test Runner
77
pytest ~= 9.0
8-
pytest-cov ~= 7.0
8+
pytest-cov ~= 7.1

0 commit comments

Comments
 (0)