Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make codecov run smoother #121

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
set -x
sudo apt-get install -y xvfb libglu1-mesa
sudo apt-get install -y xvfb libglu1-mesa x11-utils
rye pin --relaxed cpython@${{ matrix.python-version }}
rye sync --all-features
ROM_PASSWORD=${{ secrets.ROM_PASSWORD }} rye run import-roms
Expand Down 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 Expand Up @@ -215,7 +215,7 @@ jobs:
UV_SYSTEM_PYTHON: 1
run: |
set -x
sudo apt-get install -y xvfb libglu1-mesa
sudo apt-get install -y xvfb libglu1-mesa x11-utils
rye lock --all-features
uv pip install -r requirements.lock
uv pip install dist/*.whl
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"
Loading