Skip to content

Commit 6ef4aa4

Browse files
trallardTania Allard
andauthored
MAINT - Updates to CI workflows (#2214)
This PR adds the following: - Adds missing traces from #2175 - Updates the `docs` workflow pinned SHA following #2204 (this should be the last change we need to fix the `publish` workflow and have nightly releases back up again) - Updates the `regex` to skip URL checks for `gnu` URLS Closes #2175 --------- Co-authored-by: Tania Allard <[email protected]>
1 parent 3e74810 commit 6ef4aa4

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ jobs:
102102
if-no-files-found: ignore
103103
include-hidden-files: true
104104

105+
- name: "Upload Playwright traces, if any 🐾"
106+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6
107+
if: ${{ failure() }}
108+
with:
109+
name: playwright-traces-${{ matrix.os }}-${{ matrix.python-version }}
110+
path: test-results/
111+
105112
coverage:
106113
name: "Check coverage"
107114
needs: run-pytest

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# calls our docs workflow (build docs, check broken links, lighthouse)
3131
docs:
3232
# Important: make sure to update the SHA after making any changes to the docs workflow
33-
uses: pydata/pydata-sphinx-theme/.github/workflows/docs.yml@ac57147185b6f9400cafbcd852e04345e5e841b7
33+
uses: pydata/pydata-sphinx-theme/.github/workflows/docs.yml@3e74810e3ad3778c179f3f836409540e0a3bf0f1
3434
# only run this workflow for pydata owned repositories (avoid forks)
3535
if: github.repository_owner == 'pydata'
3636

docs/community/inspiration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ When making new decisions about design and UI/UX, we often consult these themes
77
:grid-columns: 1 2 2 3
88
:class-container: text-center
99
- title: "**GitBook**"
10-
link: https://docs.gitbook.com/
10+
link: https://gitbook.com/docs/
1111
image: ../_static/inspiration/GitBook-Icon-Dark.svg
1212
- title: "**Metaflow**"
1313
image: https://raw.githubusercontent.com/Netflix/metaflow/refs/heads/master/docs/metaflow.svg

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def setup(app: Sphinx) -> Dict[str, Any]:
379379
# get a 403 on CI
380380
"https://canvas.workday.com/styles/tokens/type",
381381
"https://unsplash.com/",
382-
r"https://www.gnu.org/software/gettext/.*",
382+
r"https?://www.gnu.org/software/gettext/.*",
383383
]
384384

385385
linkcheck_allowed_redirects = {

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ commands =
5656
# tox run -e compile-assets,i18n-compile,py39-sphinx61-tests
5757
# run tests without coverage
5858
# tox run -e compile-assets,i18n-compile,py39-tests-no-cov
59+
# by default we will retain playwright traces on failure
5960
[testenv:py3{9,10,11,12}{,-sphinx61,-sphinxdev,}-tests{,-no-cov}]
6061
description = "Run tests Python and Sphinx versions. If a Sphinx version is specified, it will use that version vs the default in pyproject.toml"
6162
# need to ensure the package is installed in editable mode
@@ -75,8 +76,8 @@ allowlist_externals=
7576
bash
7677
commands =
7778
bash -c 'if [[ "{env:GITHUB_ACTIONS:}" == "true" ]]; then playwright install --with-deps; else playwright install; fi'
78-
py3{9,10,11,12}{,-sphinx61,-sphinxdev,}-tests: coverage run -m pytest -m "not a11y" {posargs}
79-
py3{9,10,11,12}{,-sphinx61,-sphinxdev,}-tests-no-cov: pytest -m "not a11y" {posargs}
79+
py3{9,10,11,12}{,-sphinx61,-sphinxdev,}-tests: coverage run -m pytest -m "not a11y" {posargs:--tracing=retain-on-failure}
80+
py3{9,10,11,12}{,-sphinx61,-sphinxdev,}-tests-no-cov: pytest -m "not a11y" {posargs:--tracing=retain-on-failure}
8081

8182
# run accessibility tests with Playwright and axe-core
8283
# compiling the assets is needed before running the tests

0 commit comments

Comments
 (0)