From b8a4b38702b20a757163fdec67ba54b97406c51f Mon Sep 17 00:00:00 2001 From: Adhitya Ravi Date: Wed, 13 Aug 2025 10:23:49 +0200 Subject: [PATCH 1/2] ci: update dprecated job versions --- .github/workflows/pull-request.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 0093a1b..63ed32b 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -58,7 +58,7 @@ jobs: - name: Run Checks run: tox -e test,slow-tests - name: Upload .coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverage path: .coverage @@ -74,7 +74,7 @@ jobs: - name: Install Dependencies run: python3 -m pip install tox - name: Download .coverage - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: coverage - name: Run Checks From 74ee54e7f0858c56b96b3bfa569a488a79412faf Mon Sep 17 00:00:00 2001 From: Adhitya Ravi Date: Wed, 13 Aug 2025 10:29:06 +0200 Subject: [PATCH 2/2] ci: fix coverage step --- .github/workflows/pull-request.yaml | 1 + .github/workflows/rock-build.yaml | 4 ++-- CHANGELOG.md | 4 ++++ tox.ini | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 63ed32b..8da90b9 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -62,6 +62,7 @@ jobs: with: name: coverage path: .coverage + include-hidden-files: true coverage: name: Coverage needs: tests diff --git a/.github/workflows/rock-build.yaml b/.github/workflows/rock-build.yaml index 7d5d392..fe4d2de 100644 --- a/.github/workflows/rock-build.yaml +++ b/.github/workflows/rock-build.yaml @@ -55,12 +55,12 @@ jobs: run: syft $(realpath ./cos-alerter_*.rock) -o spdx-json=cos-alerter.sbom.json - name: Upload SBOM - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cos-alerter-sbom path: "cos-alerter.sbom.json" - name: Upload locally built ROCK artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cos-alerter-rock path: "cos-alerter_*.rock" diff --git a/CHANGELOG.md b/CHANGELOG.md index ad0b024..ef29f05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## CI - updates + +- Fixed deprecated job versions in the CI + ## [0.9.0] - 2024-05-30 - Added PagerDuty native support (#76). diff --git a/tox.ini b/tox.ini index 2a6a183..bfacc89 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ deps = black ruff commands = - ruff --fix {[vars]all_path} + ruff check --fix {[vars]all_path} black {[vars]all_path} [testenv:lint] @@ -26,7 +26,7 @@ deps = codespell commands = codespell --skip .git --skip .tox --skip build --skip venv - ruff {[vars]all_path} + ruff check {[vars]all_path} black --check --diff {[vars]all_path} [testenv:static]