Skip to content

Commit fbe02db

Browse files
Merge pull request #173 from csiro-coasts/update_github_actions
Updated upload and download github actions.
2 parents 3b4d6c5 + 16720e1 commit fbe02db

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/actions/build-python-package/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ runs:
1818
using: composite
1919

2020
steps:
21-
- uses: actions/checkout@v3
22-
- uses: actions/setup-python@v4
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ inputs.python-version }}
2525
cache: 'pip'
@@ -30,7 +30,7 @@ runs:
3030
pip install build
3131
python3 -m build
3232
33-
- uses: actions/upload-artifact@v3
33+
- uses: actions/upload-artifact@v4
3434
with:
3535
name: ${{ inputs.artifact-name }}
3636
path: "dist/"

.github/actions/environment/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929

3030
steps:
3131
# Used for the pip cache, not for the python version
32-
- uses: actions/setup-python@v4
32+
- uses: actions/setup-python@v5
3333
with:
3434
cache: 'pip'
3535
cache-dependency-path: |
@@ -38,13 +38,13 @@ runs:
3838
setup.cfg
3939
4040
- name: Fetch built emsarray package
41-
uses: actions/download-artifact@v3
41+
uses: actions/download-artifact@v4
4242
with:
4343
name: ${{ inputs.package-artifact-name }}
4444
path: "dist/"
4545

4646
- name: Cache conda packages
47-
uses: actions/cache@v3
47+
uses: actions/cache@v4
4848
with:
4949
path: ~/conda_pkgs_dir
5050
key:

.github/workflows/ci.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
outputs:
2121
artifact-name: ${{ steps.build.outputs.artifact-name }}
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- uses: ./.github/actions/build-python-package
2525
id: build
2626
with:
@@ -39,8 +39,8 @@ jobs:
3939
if: startsWith(github.head_ref, 'release-')
4040

4141
steps:
42-
- uses: actions/checkout@v3
43-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v4
4444
with:
4545
repository: conda-forge/emsarray-feedstock
4646
path: emsarray-feedstock
@@ -75,7 +75,7 @@ jobs:
7575

7676

7777
steps:
78-
- uses: actions/checkout@v3
78+
- uses: actions/checkout@v4
7979
- uses: ./.github/actions/environment
8080
with:
8181
python-version: ${{ matrix.python-version }}
@@ -95,24 +95,24 @@ jobs:
9595
--cov-report xml:coverage-${{ matrix.python-version }}.xml
9696
9797
- name: JUnit Report
98-
uses: mikepenz/action-junit-report@v3
98+
uses: mikepenz/action-junit-report@v5
9999
if: always()
100100
with:
101101
report_paths: 'junit-py*.xml'
102102
check_name: "JUnit Test Report - python ${{ matrix.python-version }}, ${{ matrix.dependencies }} dependencies"
103103

104104
- name: MPL image comparison report
105-
uses: actions/upload-artifact@v3
105+
uses: actions/upload-artifact@v4
106106
if: ${{ failure() }}
107107
with:
108108
name: "MPL image comparison report - python ${{ matrix.python-version }}, ${{ matrix.dependencies }} dependencies"
109109
path: './mpl-results'
110110
# No guarantee that the test failures were due to image comparisons
111111
if-no-files-found: 'ignore'
112112

113-
- uses: actions/upload-artifact@v3
113+
- uses: actions/upload-artifact@v4
114114
with:
115-
name: Code coverage for Python ${{ matrix.python-version }}
115+
name: Code coverage for Python ${{ matrix.python-version }}, ${{ matrix.dependencies }} dependencies
116116
path: coverage-*.xml
117117

118118
lint:
@@ -125,14 +125,14 @@ jobs:
125125
shell: bash -l {0}
126126

127127
steps:
128-
- uses: actions/checkout@v3
128+
- uses: actions/checkout@v4
129129
- uses: ./.github/actions/environment
130130
with:
131131
python-version: ${{ env.python-version }}
132132
package-artifact-name: ${{ needs.build.outputs.artifact-name }}
133133

134134
- name: 'mypy cache'
135-
uses: actions/cache@v3
135+
uses: actions/cache@v4
136136
with:
137137
path: '.mypy_cache'
138138
key: mypy-${{ runner.os }}-py${{ env.python-version }}-${{ hashFiles(format('continuous-integration/requirements-{0}.txt', env.python-version)) }}
@@ -151,7 +151,7 @@ jobs:
151151
shell: bash -l {0}
152152

153153
steps:
154-
- uses: actions/checkout@v3
154+
- uses: actions/checkout@v4
155155
- uses: ./.github/actions/environment
156156
with:
157157
python-version: ${{ env.python-version }}
@@ -162,7 +162,7 @@ jobs:
162162
cd docs/
163163
sphinx-build -b dirhtml -aEW . _build/dirhtml
164164
165-
- uses: actions/upload-artifact@v3
165+
- uses: actions/upload-artifact@v4
166166
with:
167167
name: Docs
168168
path: docs/_build/dirhtml

.github/workflows/release-tags.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
outputs:
1616
artifact-name: ${{ steps.build.outputs.artifact-name }}
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- uses: ./.github/actions/build-python-package
2020
id: build
2121
with:
@@ -28,7 +28,7 @@ jobs:
2828

2929
steps:
3030
- name: Fetch Python package
31-
uses: actions/download-artifact@v3
31+
uses: actions/download-artifact@v4
3232
with:
3333
name: ${{ needs.build.outputs.artifact-name }}
3434
path: "dist"

0 commit comments

Comments
 (0)