-
Notifications
You must be signed in to change notification settings - Fork 345
MAINT - CI improvements (security and maintenance) #2077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
drammock
merged 54 commits into
pydata:main
from
trallard:trallard/maintenance-ql-improvements
Mar 4, 2025
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
890ee6f
:construction_worker: Update release workflow
trallard e89a490
:construction_worker: Add check for docs links
trallard 865158a
:wrench: Add linkcheck for docs
trallard e93cf6c
:construction_worker: Separate docs CI into another workflow
trallard 0095423
:wrench: Add ignores and redirects to conf
trallard e70a1d3
:pencil2: Fix URLs in the docs
trallard 18e2198
:wrench: Update tox command for linkchecks
trallard 53dafed
Remove needs - CI workflow
trallard 74f4a1a
Merge branch 'main' into trallard/maintenance-ql-improvements
trallard 76b95ca
:closed_lock_with_key: Change workflow trigger to workflow_call
trallard 6e7851c
:lock: Ensure proper variable escaping in docs workflow
trallard 3e0899d
:arrow_up: Upgrade runners OS and Python versions
trallard d61186f
Add coverage required permissions
trallard e9bd826
Add actions scope to permissions:
trallard 21d7a24
:construction_worker: Add GitHub attestations to release workflow
trallard e560340
:lock: Add static analysis for GH actions with Zizmor
trallard 9b31a14
:construction_worker: Pin our reusable action to a hash
trallard 560ecfe
Add environment and pinned actions to release workflow
trallard 2a7fca4
Add more comments to workflows
trallard 8ecc548
:fire: Remove accidentally commited file
trallard 3864d38
Remove setup-dev action
trallard 741131c
Fix more URLs
trallard 3bb97dd
Remove pin in STB
trallard 1121c37
Change dependabot frequency
trallard a7e2f69
Finish changing to SHA for GitHub actions
trallard 90f9d1a
Update linkcheck config
trallard 9adae6d
Ignore unsplash for link check
trallard afaa316
Merge branch 'main' into trallard/maintenance-ql-improvements
trallard ccb12a1
Ignore known warnings in linkcheck
trallard 028f584
Update actions
trallard a6e055c
Separate a11y-tests in CI to expand the testing matrix
trallard 48d47e3
Fix tox call for a11y tests
trallard 5685060
Remove unnecessary posargs from tox commands
trallard 4222797
Add more comments to workflows files
trallard 0f7d302
Merge remote-tracking branch 'upstream/main' into trallard/maintenancβ¦
trallard 75fa435
Scope permissions - docs workflow
trallard 90fbde1
:construction_worker: Update a11y CI - keep traces
trallard 268c7c2
Remove duplicated GH jobs after merging main into branch
trallard 5242818
:construction_worker: Add workflow to add RTD preview links to PRs
trallard 6b710a6
Revert to explicit call for a11y tests
trallard bda5d15
Merge branch 'main' into trallard/maintenance-ql-improvements
trallard 89a6ff8
:wrench: Update tox config for a11y tests
trallard 798f177
Update a11y tests calls
trallard ae3faa5
Fix typo
trallard 7bc0bc1
Skip windows-firefox test for now - testing
trallard b074f7d
Remove Windows for now
trallard a199273
Merge branch 'main' into trallard/maintenance-ql-improvements
trallard 4228bcb
Fix links
trallard a3db2d2
Apply suggestions from code review
trallard 417d831
Add SHA for upload action
trallard eb9b1e7
git commit -m :memo: Add notes about updating actions SHA
trallard fd88aa7
Merge branch 'main' into trallard/maintenance-ql-improvements
trallard 0a37edf
Add step to run tests on built package
trallard 38171d0
Ensure we do not use var expansion
trallard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Accessibility tests for PST, using playwright and axe-core | ||
|
||
name: a11y-tests | ||
|
||
# Concurrency group that uses the workflow name and PR number if available | ||
# or commit SHA as a fallback. If a new build is triggered under that | ||
# concurrency group while a previous build is running it will be canceled. | ||
# Repeated pushes to a PR will cancel all previous builds, while multiple | ||
# merges to main will not cancel. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
FORCE_COLOR: "1" # Make tools pretty | ||
DEFAULT_PYTHON_VERSION: "3.12" # keep in sync with tox.ini | ||
PIP_DISABLE_PIP_VERSION_CHECK: "1" # Don't check for pip updates | ||
|
||
permissions: {} | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- "*" | ||
# allows this to be used as a composite action in other workflows | ||
workflow_call: | ||
# allow manual triggering of the workflow, while debugging | ||
workflow_dispatch: | ||
|
||
jobs: | ||
a11y-tests: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
# ubuntu-latest = 24.04 | ||
os: ["ubuntu-latest", "ubuntu-22.04", "macos-14"] | ||
browser: ["firefox", "chromium"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: "Checkout repository π" | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: "Setup CI environment π " | ||
uses: pydata/pydata-sphinx-theme/.github/actions/set-dev-env@01731d0cc57768b9eff1c97f38909932ecd7e7d1 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON_VERSION }} | ||
pandoc: true | ||
graphviz: true | ||
|
||
- name: "Run accessibility tests with playwright π" | ||
# build PST, build docs, then run a11y-tests | ||
run: python -Im tox run -e compile-assets,i18n-compile,py312-docs,a11y-tests-${{ matrix.browser }} | ||
|
||
- name: "Upload Playwright traces, if any πΎ" | ||
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6 | ||
if: ${{ failure() }} | ||
with: | ||
name: playwright-traces | ||
path: test-results/ |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.