Skip to content

Commit 57e4240

Browse files
authored
fix: publish workflows (#76)
* fixed dependencies in tox.ini * added submodule access to publish workflow
1 parent 700b07b commit 57e4240

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: .github/workflows/python-publish.yml

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
os: [ ubuntu-latest ]
2222
steps:
2323
- uses: actions/checkout@v4
24+
with:
25+
ref: ${{ github.event.workflow_run.head_branch }}
26+
token: ${{ secrets.XML_SUBMODULE_PAT }} # token with repo scope; expires never
27+
# https://github.com/Hochfrequenz/xml-fundamend-python/settings/secrets/actions/XML_AHB_MIG_Token
28+
submodules: "recursive"
2429
- name: Set up Python ${{ matrix.python-version }}
2530
uses: actions/setup-python@v5
2631
with:

Diff for: tox.ini

+1-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ setenv = PYTHONPATH = {toxinidir}/src
4444
deps =
4545
{[testenv:tests]deps}
4646
.[type_check]
47-
.[pydantic]
4847
.[cli]
4948
commands =
5049
mypy --show-error-codes src/fundamend --strict
@@ -68,7 +67,6 @@ changedir = unittests
6867
deps =
6968
{[testenv:tests]deps}
7069
.[coverage]
71-
.[pydantic]
7270
.[cli]
7371
setenv = PYTHONPATH = {toxinidir}/src
7472
commands =
@@ -104,6 +102,5 @@ commands =
104102
usedevelop = True
105103
deps =
106104
-r requirements.txt
107-
.[pydantic]
108105
commands =
109-
python json_schemas/generate_json_schemas.py
106+
python json_schemas/generate_json_schemas.py

0 commit comments

Comments
 (0)