-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- ci(python-nightly): fix ubuntu versions - ci(branch-test-others): add branches test Windows and MacOS - ci(test-coverage): codecov/codecov-action 4.3.0 --> 4.5.0 - test: coverage omit igor.py and setup.py and vendered packages
- Loading branch information
1 parent
616b235
commit e3741da
Showing
9 changed files
with
137 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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,92 @@ | ||
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 | ||
# For details: https://github.com/msftcangoblowm/sphinx-external-toc-strict/blob/main/NOTICE.txt | ||
# For contributors working in a branch, not main/master, test on Windows and MacOS | ||
# Quick, not exhaustive. Minimum interpreter versions | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- '!$default-branch' | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
env: | ||
PIP_DISABLE_PIP_VERSION_CHECK: 1 | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: "${{ github.workflow }}-${{ github.ref }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests-other: | ||
name: "${{ matrix.python-version }} on ${{ matrix.os-short }}" | ||
runs-on: "${{ matrix.os }}" | ||
# If it doesn't finish in an hour, it's not going to. Don't spin for six | ||
# hours needlessly. | ||
timeout-minutes: 60 | ||
|
||
strategy: | ||
matrix: | ||
os: | ||
- macos | ||
- windows | ||
python-version: | ||
- "3.9" | ||
- "3.12" | ||
- "3.13" | ||
fail-fast: false | ||
|
||
steps: | ||
- name: "Check out the repo" | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: "Install ${{ matrix.python-version }} with setup-python" | ||
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
if: "startsWith(matrix.python-version, 'pypy-')" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
|
||
- name: "Show diagnostic info" | ||
run: | | ||
set -xe | ||
python -VV | ||
python -m site | ||
env | ||
- name: "Install dependencies" | ||
run: | | ||
set -xe | ||
python -m pip install -r requirements/tox.pip | ||
- name: "Run tox for ${{ matrix.python-version }}" | ||
run: | | ||
python -m tox -- -rfsEX | ||
- name: "Retry tox for ${{ matrix.python-version }}" | ||
if: failure() | ||
run: | | ||
# `exit 1` makes sure that the job remains red with flaky runs | ||
python -m tox -- -rfsEX --lf -vvvvv && exit 1 | ||
# This job aggregates test results. It's the required check for branch protection. | ||
# https://github.com/marketplace/actions/alls-green#why | ||
# https://github.com/orgs/community/discussions/33579 | ||
success: | ||
name: Jobs successful | ||
# The tests didn't run if the branch name includes "-notests" | ||
if: "!contains(github.ref, '-notests')" | ||
needs: | ||
- tests-other | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Decide whether the needed jobs succeeded or failed | ||
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe | ||
with: | ||
jobs: ${{ toJSON(needs) }} |
This file contains 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 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 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 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 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 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 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 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