Skip to content

Commit e076b73

Browse files
trallardgabalafou
authored andcommitted
MAINT - Update actions/workflows SHAs (#2151)
This follows #2077 as our actions and workflows needed re-pinning after merging this branch. Included: - **:pushpin: Pin our actions to a concrete SHA** - **:construction_worker: Add test to publish workflow**
1 parent a5f4700 commit e076b73

File tree

5 files changed

+24
-21
lines changed

5 files changed

+24
-21
lines changed

.github/workflows/CI.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474

7575
- name: "Setup CI environment 🛠"
7676
# Important: make sure to update the SHA after making any changes to the set-dev-env action
77-
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@01731d0cc57768b9eff1c97f38909932ecd7e7d1
77+
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@4a1e7898d6c92dade5e489684277ab4ffd0eb053
7878
with:
7979
python-version: ${{ matrix.python-version }}
8080
pandoc: true
@@ -118,7 +118,7 @@ jobs:
118118
persist-credentials: false
119119

120120
- name: "Setup CI environment 🛠"
121-
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@01731d0cc57768b9eff1c97f38909932ecd7e7d1
121+
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@4a1e7898d6c92dade5e489684277ab4ffd0eb053
122122
with:
123123
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
124124

@@ -174,7 +174,7 @@ jobs:
174174
persist-credentials: false
175175

176176
- name: "Setup CI environment 🛠"
177-
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@01731d0cc57768b9eff1c97f38909932ecd7e7d1
177+
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@4a1e7898d6c92dade5e489684277ab4ffd0eb053
178178
with:
179179
# 3.12 is not supported by py-spy yet
180180
python-version: "3.11"

.github/workflows/a11y.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
persist-credentials: false
4747

4848
- name: "Setup CI environment 🛠"
49-
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@01731d0cc57768b9eff1c97f38909932ecd7e7d1
49+
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@4a1e7898d6c92dade5e489684277ab4ffd0eb053
5050
with:
5151
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
5252
pandoc: true

.github/workflows/docs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
- name: "Setup CI environment 🛠"
6161
# Important: make sure to update the SHA after making any changes to the set-dev-env action
62-
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@01731d0cc57768b9eff1c97f38909932ecd7e7d1
62+
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@4a1e7898d6c92dade5e489684277ab4ffd0eb053
6363
with:
6464
python-version: ${{ matrix.python-version }}
6565
pandoc: true
@@ -90,7 +90,7 @@ jobs:
9090

9191
- name: "Setup CI environment 🛠"
9292
# Important: make sure to update the SHA after making any changes to the set-dev-env action
93-
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@01731d0cc57768b9eff1c97f38909932ecd7e7d1
93+
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@4a1e7898d6c92dade5e489684277ab4ffd0eb053
9494
with:
9595
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
9696

@@ -128,7 +128,7 @@ jobs:
128128

129129
- name: "Setup CI environment 🛠"
130130
# Important: make sure to update the SHA after making any changes to the set-dev-env action
131-
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@01731d0cc57768b9eff1c97f38909932ecd7e7d1
131+
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@4a1e7898d6c92dade5e489684277ab4ffd0eb053
132132

133133
- name: "Check for broken links 🔗"
134134
run: python -Im tox run -e docs-linkcheck

.github/workflows/prerelease.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: "Setup CI environment 🛠"
3333
# Important: make sure to update the SHA after making any changes to the set-dev-env action
34-
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@01731d0cc57768b9eff1c97f38909932ecd7e7d1
34+
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@4a1e7898d6c92dade5e489684277ab4ffd0eb053
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737
pandoc: true
@@ -61,22 +61,16 @@ 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: |
70+
dist_loc="${BAIPP_DIST}"
7771
# calling with --installpkg so we can use the already built package
7872
tox run -e py312-tests-no-cov \
79-
--installpkg "${BAIPP_DIST}"/pydata_sphinx_theme-"${PST_VERSION}"-py3-none-any.whl \
73+
--installpkg $dist_loc/*.whl \
8074
-- --deselect tests/test_build.py::test_translations
8175
8276
# If either the docs build or the tests resulted in an error, create an issue to note it

.github/workflows/publish.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,16 @@ permissions:
1818
jobs:
1919
# calls our general CI workflows (tests, coverage, profile, etc.)
2020
tests:
21-
# TODO @trallard: replace SHA after merge to main
2221
# Important: make sure to update the SHA after making any changes to the CI workflow
23-
uses: pydata/pydata-sphinx-theme/.github/workflows/CI.yml@417d83135293eca5a3bbec100fece34467ced065
22+
uses: pydata/pydata-sphinx-theme/.github/workflows/CI.yml@4a1e7898d6c92dade5e489684277ab4ffd0eb053
2423
# needed for the coverage action
2524
permissions:
2625
contents: write
2726
pull-requests: write
2827
# calls our docs workflow (build docs, check broken links, lighthouse)
2928
docs:
30-
# TODO @trallard: replace SHA after merge to main
3129
# Important: make sure to update the SHA after making any changes to the docs workflow
32-
uses: pydata/pydata-sphinx-theme/.github/workflows/docs.yml@417d83135293eca5a3bbec100fece34467ced065
30+
uses: pydata/pydata-sphinx-theme/.github/workflows/docs.yml@4a1e7898d6c92dade5e489684277ab4ffd0eb053
3331

3432
build-package:
3533
name: "Build & verify PST package"
@@ -57,6 +55,17 @@ jobs:
5755
env:
5856
BAIPP_DIST: ${{ steps.baipp.outputs.dist }}
5957

58+
# Run tests on the built package (which will be later uploaded to PyPI)
59+
- name: "Install PST from wheel and test"
60+
env:
61+
BAIPP_DIST: ${{ steps.baipp.outputs.dist }}
62+
run: |
63+
dist_loc="${BAIPP_DIST}"
64+
# calling with --installpkg so we can use the already built package
65+
tox run -e py312-tests-no-cov \
66+
--installpkg $dist_loc/*.whl \
67+
-- --deselect tests/test_build.py::test_translations
68+
6069
release-PST:
6170
runs-on: ubuntu-latest
6271
needs: [build-package]

0 commit comments

Comments
 (0)