From dea3ddfcc65e7d21de2aae3ce1cbecbfad8a06b2 Mon Sep 17 00:00:00 2001 From: Engel Nyst Date: Tue, 13 May 2025 14:51:47 +0200 Subject: [PATCH] Clean up codecov (#8465) --- .github/.codecov.yml | 19 ------------------- .github/workflows/fe-unit-tests.yml | 4 ---- .github/workflows/ghcr-build.yml | 12 ++---------- .github/workflows/py-unit-tests.yml | 6 +----- 4 files changed, 3 insertions(+), 38 deletions(-) delete mode 100644 .github/.codecov.yml diff --git a/.github/.codecov.yml b/.github/.codecov.yml deleted file mode 100644 index 06ea0d7f2e..0000000000 --- a/.github/.codecov.yml +++ /dev/null @@ -1,19 +0,0 @@ -codecov: - notify: - wait_for_ci: true - # our project is large, so 6 builds are typically uploaded. this waits till 5/6 - # See https://docs.codecov.com/docs/notifications#section-preventing-notifications-until-after-n-builds - after_n_builds: 5 - -coverage: - status: - patch: - default: - threshold: 100% # allow patch coverage to be lower than project coverage by any amount - project: - default: - threshold: 5% # allow project coverage to drop at most 5% - -comment: false -github_checks: - annotations: false diff --git a/.github/workflows/fe-unit-tests.yml b/.github/workflows/fe-unit-tests.yml index d8f74a8398..0c16b414e5 100644 --- a/.github/workflows/fe-unit-tests.yml +++ b/.github/workflows/fe-unit-tests.yml @@ -42,7 +42,3 @@ jobs: - name: Run tests and collect coverage working-directory: ./frontend run: npm run test:coverage - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ghcr-build.yml b/.github/workflows/ghcr-build.yml index 5245ae471a..eb3d15494a 100644 --- a/.github/workflows/ghcr-build.yml +++ b/.github/workflows/ghcr-build.yml @@ -312,11 +312,7 @@ jobs: SANDBOX_RUNTIME_CONTAINER_IMAGE=$image_name \ TEST_IN_CI=true \ RUN_AS_OPENHANDS=false \ - poetry run pytest -n 7 -raRs --reruns 2 --reruns-delay 5 --cov=openhands --cov-report=xml -s ./tests/runtime --ignore=tests/runtime/test_browsergym_envs.py --durations=10 - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + poetry run pytest -n 7 -raRs --reruns 2 --reruns-delay 5 -s ./tests/runtime --ignore=tests/runtime/test_browsergym_envs.py --durations=10 # Run unit tests with the Docker runtime Docker images as openhands user test_runtime_oh: @@ -381,11 +377,7 @@ jobs: SANDBOX_RUNTIME_CONTAINER_IMAGE=$image_name \ TEST_IN_CI=true \ RUN_AS_OPENHANDS=true \ - poetry run pytest -n 7 -raRs --reruns 2 --reruns-delay 5 --cov=openhands --cov-report=xml -s ./tests/runtime --ignore=tests/runtime/test_browsergym_envs.py --durations=10 - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + poetry run pytest -n 7 -raRs --reruns 2 --reruns-delay 5 -s ./tests/runtime --ignore=tests/runtime/test_browsergym_envs.py --durations=10 # The two following jobs (named identically) are to check whether all the runtime tests have passed as the # "All Runtime Tests Passed" is a required job for PRs to merge diff --git a/.github/workflows/py-unit-tests.yml b/.github/workflows/py-unit-tests.yml index 3e63abe9eb..0e722a1e36 100644 --- a/.github/workflows/py-unit-tests.yml +++ b/.github/workflows/py-unit-tests.yml @@ -48,11 +48,7 @@ jobs: - name: Build Environment run: make build - name: Run Tests - run: poetry run pytest --forked -n auto --cov=openhands --cov-report=xml -svv ./tests/unit - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + run: poetry run pytest --forked -n auto -svv ./tests/unit # Run specific Windows python tests test-on-windows: