From bb0ec1776d20cdf341e25e69cbfe780c9c2e6bb6 Mon Sep 17 00:00:00 2001 From: Matteo Bettini <55539777+matteobettini@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:47:50 +0100 Subject: [PATCH] [Tests] Code cov (#33) * code cov * code cov --- .github/workflows/pettingzoo_tests.yml | 2 ++ .github/workflows/smacv2_tests.yml | 2 ++ .github/workflows/unit_tests.yml | 2 ++ .github/workflows/vmas_tests.yml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/.github/workflows/pettingzoo_tests.yml b/.github/workflows/pettingzoo_tests.yml index 25279a3b..9abafeed 100644 --- a/.github/workflows/pettingzoo_tests.yml +++ b/.github/workflows/pettingzoo_tests.yml @@ -37,3 +37,5 @@ jobs: - name: Test with pytest run: | xvfb-run -s "-screen 0 1024x768x24" pytest test/test_pettingzoo.py --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html + - name: Upload test coverage + uses: codecov/codecov-action@v2 diff --git a/.github/workflows/smacv2_tests.yml b/.github/workflows/smacv2_tests.yml index 90fd595f..f0dc5c1b 100644 --- a/.github/workflows/smacv2_tests.yml +++ b/.github/workflows/smacv2_tests.yml @@ -43,3 +43,5 @@ jobs: echo 'SC2PATH is set to ' "$SC2PATH" pytest test/test_smacv2.py --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html + - name: Upload test coverage + uses: codecov/codecov-action@v2 diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 4f981034..3f387b10 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -35,3 +35,5 @@ jobs: - name: Test with pytest run: | pytest test/ --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html + - name: Upload test coverage + uses: codecov/codecov-action@v2 diff --git a/.github/workflows/vmas_tests.yml b/.github/workflows/vmas_tests.yml index 8925918a..b319a997 100644 --- a/.github/workflows/vmas_tests.yml +++ b/.github/workflows/vmas_tests.yml @@ -37,3 +37,5 @@ jobs: - name: Test with pytest run: | xvfb-run -s "-screen 0 1024x768x24" pytest test/test_vmas.py --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html + - name: Upload test coverage + uses: codecov/codecov-action@v2