Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/build-python-package/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ runs:
using: composite

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: 'pip'
Expand All @@ -30,7 +30,7 @@ runs:
pip install build
python3 -m build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: "dist/"
6 changes: 3 additions & 3 deletions .github/actions/environment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:

steps:
# Used for the pip cache, not for the python version
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
cache: 'pip'
cache-dependency-path: |
Expand All @@ -38,13 +38,13 @@ runs:
setup.cfg

- name: Fetch built emsarray package
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.package-artifact-name }}
path: "dist/"

- name: Cache conda packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/conda_pkgs_dir
key:
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
outputs:
artifact-name: ${{ steps.build.outputs.artifact-name }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/build-python-package
id: build
with:
Expand All @@ -39,8 +39,8 @@ jobs:
if: startsWith(github.head_ref, 'release-')

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: conda-forge/emsarray-feedstock
path: emsarray-feedstock
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:


steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/environment
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -95,24 +95,24 @@ jobs:
--cov-report xml:coverage-${{ matrix.python-version }}.xml

- name: JUnit Report
uses: mikepenz/action-junit-report@v3
uses: mikepenz/action-junit-report@v5
if: always()
with:
report_paths: 'junit-py*.xml'
check_name: "JUnit Test Report - python ${{ matrix.python-version }}, ${{ matrix.dependencies }} dependencies"

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

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

lint:
Expand All @@ -125,14 +125,14 @@ jobs:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/environment
with:
python-version: ${{ env.python-version }}
package-artifact-name: ${{ needs.build.outputs.artifact-name }}

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

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/environment
with:
python-version: ${{ env.python-version }}
Expand All @@ -162,7 +162,7 @@ jobs:
cd docs/
sphinx-build -b dirhtml -aEW . _build/dirhtml

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Docs
path: docs/_build/dirhtml
4 changes: 2 additions & 2 deletions .github/workflows/release-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
outputs:
artifact-name: ${{ steps.build.outputs.artifact-name }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/build-python-package
id: build
with:
Expand All @@ -28,7 +28,7 @@ jobs:

steps:
- name: Fetch Python package
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.artifact-name }}
path: "dist"
Expand Down
Loading