π OpenHands: AI-Driven Development
Clean up codecov (#8465)
Engel Nystdea3ddfcc65e
diff --git a/.github/.codecov.yml b/.github/.codecov.ymldeleted file mode 100644index 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: falsediff --git a/.github/workflows/fe-unit-tests.yml b/.github/workflows/fe-unit-tests.ymlindex 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 coverageworking-directory: ./frontendrun: 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.ymlindex 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 usertest_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 mergediff --git a/.github/workflows/py-unit-tests.yml b/.github/workflows/py-unit-tests.ymlindex 3e63abe9eb..0e722a1e36 100644--- a/.github/workflows/py-unit-tests.yml+++ b/.github/workflows/py-unit-tests.yml@@ -48,11 +48,7 @@ jobs:- name: Build Environmentrun: 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 teststest-on-windows: