From 717ace3b45c87b15012fed8f8bb1bcbffb395e7e Mon Sep 17 00:00:00 2001 From: Tom Most Date: Fri, 6 Sep 2024 22:57:05 -0700 Subject: [PATCH 1/3] 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..ff1f3b76 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.python.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 From 8cc834c69acd476a611d2b97aae3b93efce0d819 Mon Sep 17 00:00:00 2001 From: Tom Most Date: Fri, 6 Sep 2024 23:07:46 -0700 Subject: [PATCH 2/3] Blank the newsfragment --- src/towncrier/newsfragments/669.misc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/towncrier/newsfragments/669.misc.rst b/src/towncrier/newsfragments/669.misc.rst index 6f4e3491..8b137891 100644 --- a/src/towncrier/newsfragments/669.misc.rst +++ b/src/towncrier/newsfragments/669.misc.rst @@ -1 +1 @@ -Add your info here + From 07e5c8cc033b7faeb872a3c87cfc08f97a74731a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 7 Sep 2024 06:07:55 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/towncrier/newsfragments/669.misc.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/src/towncrier/newsfragments/669.misc.rst b/src/towncrier/newsfragments/669.misc.rst index 8b137891..e69de29b 100644 --- a/src/towncrier/newsfragments/669.misc.rst +++ b/src/towncrier/newsfragments/669.misc.rst @@ -1 +0,0 @@ -