Skip to content

Commit d506ef2

Browse files
committed
👷 Fix install from wheels
1 parent f0be641 commit d506ef2

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

.github/workflows/prerelease.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,15 @@ jobs:
6161
env:
6262
BAIPP_DIST: ${{ steps.baipp.outputs.dist }}
6363

64-
- name: "Get PST version"
65-
run: |
66-
python -Im pip install -e .
67-
# Get the version of the package
68-
PST_VERSION=$(python -c "import pydata_sphinx_theme; print(pydata_sphinx_theme.__version__)")
69-
echo "PST_VERSION=$PST_VERSION" >> $GITHUB_ENV
70-
7164
# Run tests on the built package (which will be later uploaded to PyPI)
7265
- name: "Install PST from wheel and test"
66+
if: matrix.python-version == '3.9'
7367
env:
7468
BAIPP_DIST: ${{ steps.baipp.outputs.dist }}
75-
PST_VERSION: ${{ env.PST_VERSION }}
7669
run: |
7770
# calling with --installpkg so we can use the already built package
7871
tox run -e py312-tests-no-cov \
79-
--installpkg "${BAIPP_DIST}"/pydata_sphinx_theme-"${PST_VERSION}"-py3-none-any.whl \
72+
--installpkg "${ BAIPP_DIST }"/*.whl \
8073
-- --deselect tests/test_build.py::test_translations
8174
8275
# If either the docs build or the tests resulted in an error, create an issue to note it

.github/workflows/publish.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,14 @@ jobs:
5555
env:
5656
BAIPP_DIST: ${{ steps.baipp.outputs.dist }}
5757

58-
- name: "Get PST version"
59-
run: |
60-
python -Im pip install -e .
61-
# Get the version of the package
62-
PST_VERSION=$(python -c "import pydata_sphinx_theme; print(pydata_sphinx_theme.__version__)")
63-
echo "PST_VERSION=$PST_VERSION" >> $GITHUB_ENV
64-
6558
# Run tests on the built package (which will be later uploaded to PyPI)
6659
- name: "Install PST from wheel and test"
6760
env:
6861
BAIPP_DIST: ${{ steps.baipp.outputs.dist }}
69-
PST_VERSION: ${{ env.PST_VERSION }}
7062
run: |
7163
# calling with --installpkg so we can use the already built package
7264
tox run -e py312-tests-no-cov \
73-
--installpkg "${BAIPP_DIST}"/pydata_sphinx_theme-"${PST_VERSION}"-py3-none-any.whl \
65+
--installpkg "${ BAIPP_DIST }"/*.whl \
7466
-- --deselect tests/test_build.py::test_translations
7567
7668
release-PST:

0 commit comments

Comments
 (0)