From 3152e97b2f26e3fd767890d4059f0435f91217d1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 24 Nov 2025 19:49:44 +0100 Subject: [PATCH 1/4] chore: switch from coveralls to codecov --- .github/workflows/ci.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dddce1734..5487bcdf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,8 @@ jobs: matrix: os: [ "ubuntu-22.04", "ubuntu-24.04", "macos-14", "macos-15" , "windows-2022", "windows-2025" ] python-version: ["3.11", "3.12", "3.13"] + permissions: + id-token: write steps: - uses: actions/checkout@v5 @@ -74,15 +76,9 @@ jobs: run: | pytest --random-order --cov=freqtrade --cov=freqtrade_client --cov-config=.coveragerc - - name: Coveralls - if: (runner.os == 'Linux' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-24.04') - env: - # Coveralls token. Not used as secret due to github not providing secrets to forked repositories - COVERALLS_REPO_TOKEN: 6D1m0xupS3FgutfuGao8keFf9Hc0FpIXu - run: | - # Allow failure for coveralls - uv pip install coveralls - coveralls || true + - uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 + with: + use_oidc: true - name: Run json schema extract # This should be kept before the repository check to ensure that the schema is up-to-date From b337b075ab6ff58e0dd2af84547ed924a1fe3eea Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 24 Nov 2025 19:53:55 +0100 Subject: [PATCH 2/4] chore: limit to appropriate runner --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5487bcdf5..30f57f1e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,6 +77,7 @@ jobs: pytest --random-order --cov=freqtrade --cov=freqtrade_client --cov-config=.coveragerc - uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 + if: (runner.os == 'Linux' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-24.04') with: use_oidc: true From a7ac957399b97377dfb6182df00f6058d6b43d82 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 24 Nov 2025 20:19:20 +0100 Subject: [PATCH 3/4] chore: implement cleanup for codecov action bug --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30f57f1e3..c1f54dde6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,6 +81,12 @@ jobs: with: use_oidc: true + - name: Cleanup codecov dirty state files + if: (runner.os == 'Linux' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-24.04') + run: | + # See https://github.com/codecov/codecov-action/issues/1851 + rm -rf codecov codecov.SHA256SUM codecov.SHA256SUM.sig + - name: Run json schema extract # This should be kept before the repository check to ensure that the schema is up-to-date run: | From b5e17735a65144e428815c379e176ff9d958e801 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 25 Nov 2025 19:03:48 +0100 Subject: [PATCH 4/4] chore: use codecov with token --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1f54dde6..0156758eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,6 @@ jobs: matrix: os: [ "ubuntu-22.04", "ubuntu-24.04", "macos-14", "macos-15" , "windows-2022", "windows-2025" ] python-version: ["3.11", "3.12", "3.13"] - permissions: - id-token: write steps: - uses: actions/checkout@v5 @@ -79,7 +77,8 @@ jobs: - uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 if: (runner.os == 'Linux' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-24.04') with: - use_oidc: true + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} - name: Cleanup codecov dirty state files if: (runner.os == 'Linux' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-24.04')