Skip to content

Commit 1d08526

Browse files
committed
ci: update actions to their latest versions
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 51432dd commit 1d08526

3 files changed

Lines changed: 24 additions & 24 deletions

File tree

‎.github/workflows/doc.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout code
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v7
2323

2424
- name: Install bash 5.3
2525
uses: pkgcore/gh-actions/bash-5.3@main
2626

2727
- name: Set up Python 3.14
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@v7
2929
with:
3030
python-version: '3.14'
3131

@@ -41,7 +41,7 @@ jobs:
4141
touch build/sphinx/html/.nojekyll
4242
4343
- name: Upload artifact
44-
uses: actions/upload-pages-artifact@v3
44+
uses: actions/upload-pages-artifact@v5
4545
with:
4646
path: build/sphinx/html
4747

@@ -56,4 +56,4 @@ jobs:
5656
steps:
5757
- name: Deploy to GitHub Pages
5858
id: deployment
59-
uses: actions/deploy-pages@v4
59+
uses: actions/deploy-pages@v5

‎.github/workflows/release.yml‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout code
21-
uses: actions/checkout@v5
21+
uses: actions/checkout@v7
2222

2323
- name: Reject any VCS dependencies
2424
continue-on-error: ${{ github.ref_type == 'branch' && github.ref_name != 'release-test-full' }}
@@ -28,7 +28,7 @@ jobs:
2828
uses: pkgcore/gh-actions/bash-5.3@main
2929

3030
- name: Set up Python 3.14
31-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@v7
3232
with:
3333
python-version: "3.14"
3434
cache: 'pip'
@@ -55,15 +55,15 @@ jobs:
5555
5656
- name: Upload wheel
5757
id: upload-wheel
58-
uses: actions/upload-artifact@v5
58+
uses: actions/upload-artifact@v7
5959
with:
6060
name: wheel-release
6161
path: dist/*.whl
6262
if-no-files-found: error
6363

6464
- name: Upload release source
6565
id: upload-release
66-
uses: actions/upload-artifact@v5
66+
uses: actions/upload-artifact@v7
6767
with:
6868
name: release-source
6969
path: dist/*.tar.gz
@@ -88,20 +88,20 @@ jobs:
8888
steps:
8989
- &common_download_artifacts
9090
name: Download artifacts
91-
uses: actions/download-artifact@v5
91+
uses: actions/download-artifact@v8
9292
with:
9393
merge-multiple: true # store both in the root, not in named directories
9494
artifact-ids: ${{ needs.build.outputs.release-artifact-id }},${{ needs.build.outputs.wheel-artifact-id }}
9595

9696
- name: Publish github source
97-
uses: softprops/action-gh-release@v2
97+
uses: softprops/action-gh-release@v3
9898
with:
9999
files: '*.tar.*'
100100
fail_on_unmatched_files: true
101101
draft: true
102102

103103
- name: Publish to PyPi server
104-
uses: pypa/gh-action-pypi-publish@release/v1.13
104+
uses: pypa/gh-action-pypi-publish@release/v1.14
105105
with:
106106
packages-dir: .
107107

@@ -118,7 +118,7 @@ jobs:
118118
steps:
119119
- *common_download_artifacts
120120
- name: Publish github source
121-
uses: softprops/action-gh-release@v2
121+
uses: softprops/action-gh-release@v3
122122
if: github.ref_name == 'release-test-github' || github.ref_name == 'release-test-full'
123123
with:
124124
files: '*.tar.*'
@@ -127,7 +127,7 @@ jobs:
127127

128128
- name: Publish to Test PyPi server
129129
if: github.ref_name == 'release-test-pypi' || github.ref_name == 'release-test-full'
130-
uses: pypa/gh-action-pypi-publish@release/v1.13
130+
uses: pypa/gh-action-pypi-publish@release/v1.14
131131
with:
132132
packages-dir: .
133133
repository-url: https://test.pypi.org/legacy/
@@ -146,29 +146,29 @@ jobs:
146146

147147
steps:
148148
- name: Checkout code
149-
uses: actions/checkout@v4
149+
uses: actions/checkout@v7
150150

151151
- name: Scrape build info
152152
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
153153

154154
- name: Log in to the Container registry
155-
uses: docker/login-action@v3
155+
uses: docker/login-action@v4
156156
with:
157157
registry: ghcr.io
158158
username: ${{ github.actor }}
159159
password: ${{ secrets.GITHUB_TOKEN }}
160160

161161
- name: Docker meta
162162
id: meta
163-
uses: docker/metadata-action@v5
163+
uses: docker/metadata-action@v6
164164
with:
165165
images: ghcr.io/pkgcore/pkgcheck
166166
tags: |
167167
type=semver,pattern={{version}}
168168
type=sha
169169
170170
- name: Build and push
171-
uses: docker/build-push-action@v5
171+
uses: docker/build-push-action@v7
172172
with:
173173
context: .
174174
push: true

‎.github/workflows/test.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
run: sed -e '/^requires-python/!s/~=/==/' -i pyproject.toml
8282

8383
- name: Set up Python ${{ matrix.python-version }}
84-
uses: actions/setup-python@v5
84+
uses: actions/setup-python@v7
8585
with:
8686
python-version: ${{ matrix.python-version }}
8787
cache: 'pip'
@@ -99,7 +99,7 @@ jobs:
9999

100100
- name: Submit code coverage to codecov
101101
if: ${{ matrix.os == 'ubuntu-latest' }}
102-
uses: codecov/codecov-action@v3
102+
uses: codecov/codecov-action@v7
103103
with:
104104
files: ./coverage.xml
105105

@@ -108,13 +108,13 @@ jobs:
108108
if: inputs.disable-format-check == ''
109109
steps:
110110
- name: Checkout code
111-
uses: actions/checkout@v4
111+
uses: actions/checkout@v7
112112

113113
- name: Install bash 5.3
114114
uses: pkgcore/gh-actions/bash-5.3@main
115115

116116
- name: Set up Python 3
117-
uses: actions/setup-python@v5
117+
uses: actions/setup-python@v7
118118
with:
119119
python-version: '3.x'
120120

@@ -126,7 +126,7 @@ jobs:
126126
- name: Run linting tools
127127
run: pylint --exit-zero src/pkgcheck
128128

129-
- uses: astral-sh/ruff-action@v3
129+
- uses: astral-sh/ruff-action@v4.1.0
130130
with:
131131
args: "check --diff"
132132

@@ -135,7 +135,7 @@ jobs:
135135
if: inputs.disable-format-check == ''
136136
steps:
137137
- name: Checkout code
138-
uses: actions/checkout@v4
139-
- uses: astral-sh/ruff-action@v3
138+
uses: actions/checkout@v7
139+
- uses: astral-sh/ruff-action@v4.1.0
140140
with:
141141
args: "format --check --diff"

0 commit comments

Comments
 (0)