Skip to content

Commit 80842de

Browse files
Bump updated GitHub Actions (#7)
* Bump codecov/codecov-action from 3 to 5 Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 5. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v3...v5) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Try building on runners that are still available [dependabot skip] * Bump actions/setup-python from 5 to 6 (#12) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/checkout from 4 to 6 (#15) Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/upload-artifact from 4 to 6 (#16) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 6. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v4...v6) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/download-artifact from 4 to 7 (#17) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v4...v7) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent a2f4d79 commit 80842de

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
image: ${{ matrix.container-image }}
1616
env:
1717
PYTHON: ${{ matrix.python-version }}
18-
runs-on: [ubuntu-20.04]
18+
runs-on: [ubuntu-latest]
1919
strategy:
2020
# Finish the other builds even if one fails.
2121
fail-fast: false
@@ -24,20 +24,46 @@ jobs:
2424
include:
2525
- python-version: '2.7'
2626
container-image: python:2.7
27+
- python-version: '3.7'
28+
container-image: python:3.7
2729
steps:
28-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
2931
with:
3032
# Fetch all the history so setuptools_scm can version relative to the
3133
# most recent version tag.
3234
fetch-depth: 0
3335

34-
- uses: actions/setup-python@v5
36+
- uses: actions/setup-python@v6
3537
# Only set up Python if we're running directly on an agent. If we're in
3638
# a container, the image should already provide the intended Python.
3739
if: '! matrix.container-image'
3840
with:
3941
python-version: ${{ matrix.python-version }}
4042

43+
- name: Let git run in the containerized workspace
44+
if: matrix.container-image
45+
run: |
46+
set -euxo pipefail
47+
48+
# Actions will create the workspace directory as runner (uid 1001) on
49+
# the "real" agent host before it runs the container. actions/checkout
50+
# will set `safe.directory` so it can check out the project as the
51+
# container user to runner's workspace directory, but it does so with
52+
# a temporary $HOME set, so `safe.directory` appears unset by the time
53+
# we're in another step. For containers with git 2.30.2+, like
54+
# python:3.7, that means git operations will exit with a "dubious
55+
# ownership" error.
56+
id -u
57+
ls -lAd "$GITHUB_WORKSPACE"
58+
ls -lA "$GITHUB_WORKSPACE"
59+
git config --get-all safe.directory || true
60+
61+
# Set safe.directory on the workspace so that setuptools-scm can
62+
# identify the version of the package we're packaging.
63+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
64+
65+
shell: bash
66+
4167
- name: Install python dependencies
4268
run: |
4369
pip install wheel build tox
@@ -55,15 +81,15 @@ jobs:
5581
run: python -m build
5682

5783
- name: Upload coverage
58-
uses: codecov/codecov-action@v3
84+
uses: codecov/codecov-action@v5
5985
if: matrix.python-version == '3.8'
6086
with:
6187
env_vars: PYTHON
6288
# TODO: re-enable errors when rate limit is resolved?
6389
# fail_ci_if_error: true
6490
files: .coverage.${{ steps.pyenv.outputs.value }}.xml
6591

66-
- uses: actions/upload-artifact@v4
92+
- uses: actions/upload-artifact@v6
6793
if: matrix.python-version == '2.7' || matrix.python-version == '3.8'
6894
with:
6995
name: dist-${{ matrix.python-version }}
@@ -77,7 +103,7 @@ jobs:
77103
id-token: write
78104
if: github.event_name != 'pull_request'
79105
steps:
80-
- uses: actions/download-artifact@v4
106+
- uses: actions/download-artifact@v7
81107

82108
- name: Organize files for upload
83109
run: |

0 commit comments

Comments
 (0)