Skip to content

Commit

Permalink
bump actions version
Browse files Browse the repository at this point in the history
- ci(testsuite): add platform windows-latest
- ci: bump actions version
  • Loading branch information
msftcangoblowm committed Jan 5, 2025
1 parent f978040 commit 9b94dc7
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 40 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/branch-test-others.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ permissions:

jobs:
tests-other:
name: "${{ matrix.python-version }} on ${{ matrix.os }}"
name: "${{ matrix.python-version }} on ${{ matrix.platform }}"
if:
${{ !(contains('-notests', github.ref) || contains('refs/heads/main', github.ref)) }}
runs-on: "${{ matrix.os }}"
runs-on: "${{ matrix.platform }}"
# 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:
platform:
- windows-latest
python-version:
- "3.12"
Expand All @@ -41,10 +41,10 @@ jobs:

steps:
- name: "Check out the repo"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@v4.2.2

- name: "Install ${{ matrix.python-version }} with setup-python"
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
uses: actions/setup-python@v5.3.0
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true
Expand Down Expand Up @@ -85,6 +85,6 @@ jobs:

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe
uses: re-actors/alls-green@223e4bb7a751b91f43eda76992bcfbf23b8b0302
with:
jobs: ${{ toJSON(needs) }}
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
uses: actions/dependency-review-action@v4.5.0
with:
base-ref: ${{ github.event.pull_request.base.sha || 'main' }}
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}
4 changes: 2 additions & 2 deletions .github/workflows/python-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

steps:
- name: "Check out the repo"
uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc # v4.1.7
uses: actions/checkout@v4.2.2

- name: "Install ${{ matrix.python-version }} with deadsnakes"
uses: deadsnakes/[email protected]
Expand All @@ -74,7 +74,7 @@ jobs:
python-version: "${{ matrix.python-version }}"

- name: "Install ${{ matrix.python-version }} with setup-python"
uses: actions/setup-python@v5.2.0
uses: actions/setup-python@v5.3.0
if: "startsWith(matrix.python-version, 'pypy-')"
with:
python-version: "${{ matrix.python-version }}"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
# For details: https://github.com/msftcangoblowm/sphinx-external-toc-strict/blob/master/NOTICE.txt
# https://github.com/pyscaffold/pyscaffold/blob/master/src/pyscaffold/templates/github_ci_workflow.template
# https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts#passing-data-between-jobs-in-a-workflow

Expand Down Expand Up @@ -36,10 +36,10 @@ jobs:

steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
uses: actions/checkout@v4.2.2

- name: "Install Python"
uses: "actions/setup-python@v5"
uses: actions/setup-python@v5.3.0
with:
python-version: "3.10" # Minimum of PYVERSIONS
# cache: pip
Expand All @@ -59,10 +59,10 @@ jobs:

steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
uses: actions/checkout@v4.2.2

- name: "Install Python"
uses: "actions/setup-python@v5"
uses: actions/setup-python@v5.3.0
with:
python-version: "3.10" # Minimum of PYVERSIONS, but at least 3.9
# cache: pip
Expand All @@ -84,10 +84,10 @@ jobs:

steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
uses: actions/checkout@v4.2.2

- name: "Install Python"
uses: "actions/setup-python@v5"
uses: actions/setup-python@v5.3.0
with:
python-version: "3.10" # Doc version from PYVERSIONS
# cache: pip
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/msftcangoblowm/sphinx-external-toc-strict/blob/master/NOTICE.txt
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#the-whole-ci-cd-workflow

name: "release"
Expand Down Expand Up @@ -27,7 +29,7 @@ jobs:

steps:
- name: Checkout the repo
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
with:
# fetch all branches and tags instead of only fetching the ref/SHA that triggered the workflow
fetch-depth: 0
Expand All @@ -40,7 +42,7 @@ jobs:
echo "tag=$(git describe --tags)" >> $GITHUB_OUTPUT
- name: Install py310
uses: actions/setup-python@v5
uses: actions/setup-python@v5.3.0
with:
python-version: "3.10"
# cache: pip
Expand All @@ -58,7 +60,7 @@ jobs:
python igor.py build_next "$RELEASE_VERSION"
- name: Store the distribution packages
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.5.0
with:
name: python-package-distributions
path: ${{ env.DEST_FOLDER }}
Expand All @@ -78,7 +80,7 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
with:
name: python-package-distributions
path: ${{ env.DEST_FOLDER }}
Expand All @@ -102,7 +104,7 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
with:
name: python-package-distributions
path: ${{ env.DEST_FOLDER }}
Expand Down Expand Up @@ -147,7 +149,7 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
with:
name: python-package-distributions
path: ${{ env.DEST_FOLDER }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/msftcangoblowm/logging-strict/blob/master/NOTICE.txt
# For details: https://github.com/msftcangoblowm/sphinx-external-toc-strict/blob/master/NOTICE.txt
#
# https://github.com/codecov/codecov-action
# https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
fail-fast: false
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
uses: actions/checkout@v4.2.2
with:
# fetch all branches and tags instead of only fetching the ref/SHA that triggered the workflow
fetch-depth: 0
Expand All @@ -58,7 +58,7 @@ jobs:
run: |
echo "tag=$(git describe --tags)" >> $GITHUB_OUTPUT
- name: Set up Python ${{ matrix.python-version }}
uses: "actions/setup-python@v5"
uses: actions/setup-python@v5.3.0
with:
python-version: "${{ matrix.python-version }}"
# cache: pip
Expand Down Expand Up @@ -89,14 +89,14 @@ jobs:
python -m coverage combine
python -m coverage xml --fail-under=90
- name: "Upload to Codecov"
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v5.1.2
with:
name: unittest-py3.10
token: ${{ secrets.CODECOV_TOKEN }}
slug: msftcangoblowm/sphinx-external-toc-strict
os: linux
flags: unittests
file: ./coverage.xml
files: ./coverage.xml
env_vars: OS,PYTHON
fail_ci_if_error: true
verbose: true
19 changes: 10 additions & 9 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
# For details: https://github.com/msftcangoblowm/sphinx-external-toc-strict/blob/master/NOTICE.txt
# https://github.com/pyscaffold/pyscaffold/blob/master/src/pyscaffold/templates/github_ci_workflow.template
# https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts#passing-data-between-jobs-in-a-workflow

Expand Down Expand Up @@ -33,15 +33,16 @@ concurrency:

jobs:
tests:
name: "${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}-latest"
name: "${{ matrix.python-version }} on ${{ matrix.platform }}"
runs-on: "${{ matrix.platform }}"
# Don't run tests if the branch name includes "-notests"
if: "!contains(github.ref, '-notests')"
strategy:
matrix:
os:
- ubuntu
- macos
platform:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
# When changing this list, be sure to check the [gh] list in
# tox.ini so that tox will run properly. PYVERSIONS
Expand All @@ -59,10 +60,10 @@ jobs:

steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
uses: actions/checkout@v4.2.2

- name: "Set up Python"
uses: "actions/setup-python@v5"
uses: actions/setup-python@v5.3.0
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true
Expand Down Expand Up @@ -108,6 +109,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe
uses: re-actors/alls-green@223e4bb7a751b91f43eda76992bcfbf23b8b0302
with:
jobs: ${{ toJSON(needs) }}
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ Changelog
Commit items for NEXT VERSION
..............................

- ci(testsuite): add platform windows-latest
- ci: bump actions version

.. scriv-start-here
.. _changes_2-0-1:
Expand Down
2 changes: 1 addition & 1 deletion NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2023-2024 Dave Faulkmore. All rights reserved. Apache2 License
Copyright 2023-2025 Dave Faulkmore. All rights reserved. Apache2 License
Copyright 2021-2023 Chris Sewell. All rights reserved. MIT License

Except where noted otherwise, this software is licensed under the Apache
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# copyright = "2021, Executable Book Project"

# @@@ editable
copyright = "2023–2024, Dave Faulkmore"
copyright = "2023–2025, Dave Faulkmore"
# The short X.Y.Z version.
version = "2.0.1"
# The full version, including alpha/beta/rc tags.
Expand Down

0 comments on commit 9b94dc7

Please sign in to comment.