Skip to content

Commit

Permalink
[CI] Fix code cov (#51)
Browse files Browse the repository at this point in the history
* Fix code cov

* Amend

* Amend

* Amend

* Amend

* Amend
  • Loading branch information
matteobettini authored Jan 19, 2024
1 parent 9a3c635 commit 6cac0c2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 12 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pettingzoo_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

jobs:
build:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -37,5 +37,9 @@ 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
- if: matrix.python-version == '3.10'
name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
10 changes: 7 additions & 3 deletions .github/workflows/smacv2_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

jobs:
build:
tests:
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'smacv2') }}
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -43,5 +43,9 @@ 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
- if: matrix.python-version == '3.10'
name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
10 changes: 7 additions & 3 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

jobs:
build:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -35,5 +35,9 @@ 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
- if: matrix.python-version == '3.10'
name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
10 changes: 7 additions & 3 deletions .github/workflows/vmas_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

jobs:
build:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -37,5 +37,9 @@ 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
- if: matrix.python-version == '3.10'
name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false

0 comments on commit 6cac0c2

Please sign in to comment.