From a611b6f03b71c91fa4ae3998ddbfff38bae40d89 Mon Sep 17 00:00:00 2001 From: Tom Most Date: Fri, 6 Sep 2024 22:57:05 -0700 Subject: [PATCH] Switch to upload-artifact/download-artifact v4 Fixes #669. --- .github/workflows/ci.yml | 23 +++++++++++++---------- src/towncrier/newsfragments/669.misc.rst | 1 + 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 src/towncrier/newsfragments/669.misc.rst diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2753d187..75ddd8b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: - run: nox -e ${{ matrix.task.nox }} - name: Publish - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dist path: dist/ @@ -84,7 +84,7 @@ jobs: - uses: actions/checkout@v3 - name: Download package files - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist path: dist/ @@ -104,9 +104,9 @@ jobs: - run: nox --python ${{ matrix.python.action }} -e ${{ matrix.task.nox }} -- --use-wheel dist/*.whl - name: Upload coverage data - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: coverage-data + name: coverage-data-${{ matrix.action }} path: .coverage.* include-hidden-files: true if-no-files-found: ignore @@ -131,7 +131,7 @@ jobs: - uses: actions/checkout@v3 - name: Download package files - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist path: dist/ @@ -178,7 +178,7 @@ jobs: fetch-depth: 0 - name: Download package files - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist path: dist/ @@ -246,7 +246,7 @@ jobs: - uses: actions/checkout@v3 - name: Download package files - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist path: dist/ @@ -283,9 +283,11 @@ jobs: - run: python -Im pip install --upgrade coverage[toml] - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: coverage-data + pattern: coverage-data-* + merge-multiple: true + path: . - name: Combine coverage & fail if it's <100%. run: | @@ -299,10 +301,11 @@ jobs: python -Im coverage report --fail-under=100 - name: Upload HTML report if check failed. - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: html-report path: htmlcov + include-hidden-files: true if: ${{ failure() }} # This is a meta-job to simplify PR CI enforcement configuration in GitHub. diff --git a/src/towncrier/newsfragments/669.misc.rst b/src/towncrier/newsfragments/669.misc.rst new file mode 100644 index 00000000..6f4e3491 --- /dev/null +++ b/src/towncrier/newsfragments/669.misc.rst @@ -0,0 +1 @@ +Add your info here