Skip to content

Commit

Permalink
Make codecov run smoother
Browse files Browse the repository at this point in the history
Signed-off-by: guillemdb <[email protected]>
  • Loading branch information
Guillemdb committed Sep 4, 2024
1 parent 9bba820 commit f947e5a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false # optional (default = false)
files: ./coverage.xml,./coverage_parallel.xml
files: ./coverage.xml,./coverage_parallel_1.xml,./coverage_parallel_2.xml,./coverage_parallel_3.xml,./coverage_vectorization.xml
flags: unittests # optional
name: codecov-umbrella # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
coverage_parallel.xml
coverage_*.xml
*.cover
.hypothesis/

Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ import-roms = { cmd = "python3 src/plangym/scripts/import_retro_roms.py" }
"test:parallel" = { cmd = "pytest -n auto -s -o log_cli=true -o log_cli_level=info tests", env-file = ".multicore.env" }
"test:singlecore" = { cmd = "pytest -s -o log_cli=true -o log_cli_level=info tests/control/test_classic_control.py", env-file = ".onecore.env" }
"test:doctest" = { cmd = "pytest --doctest-modules -n 0 -s -o log_cli=true -o log_cli_level=info src", env-file = ".multicore.env" }
"codecov:parallel" = { cmd = "pytest -n auto -s -o log_cli=true -o log_cli_level=info --cov=./ --cov-report=xml:coverage_parallel.xml --cov-config=pyproject.toml tests", env-file = ".multicore.env" }
"codecov:parallel" = { chain = ["codecov:parallel_1", "codecov:parallel_2", "codecov:parallel_3", "codecov:vectorization"] }
"codecov:parallel_1" = { cmd = "pytest -n auto -s -o log_cli=true -o log_cli_level=info --cov=./ --cov-report=xml:coverage_parallel_1.xml --cov-config=pyproject.toml tests/test_core.py tests/test_registry.py tests/test_utils.py", env-file = ".multicore.env" }
"codecov:parallel_2" = { cmd = "pytest -n auto -s -o log_cli=true -o log_cli_level=info --cov=./ --cov-report=xml:coverage_parallel_2.xml --cov-config=pyproject.toml tests/videogames", env-file = ".multicore.env" }
"codecov:parallel_3" = { cmd = "pytest -n auto -s -o log_cli=true -o log_cli_level=info --cov=./ --cov-report=xml:coverage_parallel_3.xml --cov-config=pyproject.toml tests/control", env-file = ".multicore.env" }
"codecov:vectorization" = { cmd = "pytest -n 0 -s -o log_cli=true -o log_cli_level=info --cov=./ --cov-report=xml:coverage_vectorization.xml --cov-config=pyproject.toml tests/vectorization", env-file = ".multicore.env" }
"codecov:singlecore" = { cmd = "pytest --doctest-modules -s -o log_cli=true -o log_cli_level=info --cov=./ --cov-report=xml --cov-config=pyproject.toml tests/control/test_classic_control.py", env-file = ".onecore.env" }
docs = {chain = ["build-docs", "serve-docs"]}
build-docs = { cmd = "sphinx-build -b html docs/source docs/build"}
Expand Down
6 changes: 3 additions & 3 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ nest-asyncio==1.6.0
# via ipykernel
notebook-shim==0.2.4
# via jupyterlab
numpy==2.1.0
numpy==2.1.1
# via ale-py
# via dm-control
# via dm-env
Expand Down Expand Up @@ -440,7 +440,7 @@ scipy==1.14.1
# via dm-control
send2trash==1.8.3
# via jupyter-server
setuptools==74.1.0
setuptools==74.1.1
# via dm-control
# via jupyterlab
# via labmaze
Expand Down Expand Up @@ -505,7 +505,7 @@ sphinxcontrib-serializinghtml==2.0.0
# via sphinx
sphinxext-opengraph==0.9.1
# via plangym
sqlalchemy==2.0.32
sqlalchemy==2.0.33
# via jupyter-cache
stable-retro==0.9.1 ; sys_platform == 'darwin'
# via plangym
Expand Down
6 changes: 3 additions & 3 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ nest-asyncio==1.6.0
# via ipykernel
notebook-shim==0.2.4
# via jupyterlab
numpy==2.1.0
numpy==2.1.1
# via ale-py
# via dm-control
# via dm-env
Expand Down Expand Up @@ -439,7 +439,7 @@ scipy==1.14.1
# via dm-control
send2trash==1.8.3
# via jupyter-server
setuptools==74.1.0
setuptools==74.1.1
# via dm-control
# via jupyterlab
# via labmaze
Expand Down Expand Up @@ -504,7 +504,7 @@ sphinxcontrib-serializinghtml==2.0.0
# via sphinx
sphinxext-opengraph==0.9.1
# via plangym
sqlalchemy==2.0.32
sqlalchemy==2.0.33
# via jupyter-cache
stable-retro==0.9.1 ; sys_platform == 'darwin'
# via plangym
Expand Down
2 changes: 1 addition & 1 deletion src/plangym/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Current version of the project. Do not modify manually."""

__version__ = "0.1.5"
__version__ = "0.1.25"

0 comments on commit f947e5a

Please sign in to comment.