diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 090a863a..0cffecaf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -69,18 +69,17 @@ jobs: - name: Run Pytest if: matrix.os != 'ubuntu-latest' || matrix.pyversion != '3.12' shell: bash - run: | - rye run pytest -n auto + run: rye run pytest -n auto - name: Run pytest and coverage for differt if: matrix.os == 'ubuntu-latest' && matrix.pyversion == '3.12' - run: rye run pytest --cov-report xml --cov=differt differt/tests/ + run: rye run pytest --cov-report xml --cov=differt differt - name: Upload to codecov.io if: matrix.os == 'ubuntu-latest' && matrix.pyversion == '3.12' uses: codecov/codecov-action@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.DIFFERT_CODECOV_TOKEN }} fail_ci_if_error: true cargo-test: @@ -150,7 +149,7 @@ jobs: - name: Generate profile data run: | python -m ensurepip - python -m pip install differt --no-index --no-deps --find-links pgo-wheel --force-reinstall + python -m pip install differt-core --no-index --no-deps --find-links differt-core/pgo-wheel --force-reinstall pytest --benchmark-only differt-core/tests/benchmarks rustup run stable bash -c 'echo LLVM_PROFDATA=$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/${{ env.RUST_HOST }}/bin/llvm-profdata >> "$GITHUB_ENV"' @@ -169,7 +168,7 @@ jobs: - name: Run Benchmarks on changes with PGO-optimized wheel run: | - python -m pip install differt --no-index --no-deps --find-links opt-wheel --force-reinstall + python -m pip install differt-core --no-index --no-deps --find-links differt-core/opt-wheel --force-reinstall pytest --benchmark-only --benchmark-save=pgo differt-core/tests/benchmarks - name: Checkout base branch @@ -191,7 +190,7 @@ jobs: - name: Run Benchmarks before changes run: | - python -m pip install differt --no-index --no-deps --find-links dist --force-reinstall + python -m pip install differt-core --no-index --no-deps --find-links differt-core/dist --force-reinstall pytest --benchmark-only --benchmark-save=before differt-core/tests/benchmarks - name: Compare benchmarks diff --git a/README.md b/README.md index 07007b7a..4116548e 100644 --- a/README.md +++ b/README.md @@ -120,5 +120,5 @@ pytest --benchmark-only [pypi-python-version-badge]: https://img.shields.io/pypi/pyversions/DiffeRT?color=orange [documentation-badge]: https://readthedocs.org/projects/differt/badge/?version=latest [documentation-url]: https://differt.readthedocs.io/latest/?badge=latest -[codecov-badge]: https://codecov.io/gh/jeertmans/DiffeRT/branch/main/graph/badge.svg?token=8P4DY9JCE4 +[codecov-badge]: https://codecov.io/gh/jeertmans/DiffeRT/branch/main/graph/badge.svg?token=v63alnTWzu [codecov-url]: https://codecov.io/gh/jeertmans/DiffeRT diff --git a/differt-core/README.md b/differt-core/README.md index 82028b46..996edbd6 100644 --- a/differt-core/README.md +++ b/differt-core/README.md @@ -9,7 +9,6 @@ [![Latest Release][pypi-version-badge]][pypi-version-url] [![Python version][pypi-python-version-badge]][pypi-version-url] [![Documentation][documentation-badge]][documentation-url] -[![Codecov][codecov-badge]][codecov-url] @@ -32,5 +31,3 @@ are shared with the [pypi-python-version-badge]: https://img.shields.io/pypi/pyversions/DiffeRT-core?color=orange [documentation-badge]: https://readthedocs.org/projects/differt/badge/?version=latest [documentation-url]: https://differt.readthedocs.io/latest/?badge=latest -[codecov-badge]: https://codecov.io/gh/jeertmans/DiffeRT-core/branch/main/graph/badge.svg?token=8P4DY9JCE4 -[codecov-url]: https://codecov.io/gh/jeertmans/DiffeRT-core diff --git a/differt/src/differt/scene/sionna.py b/differt/src/differt/scene/sionna.py index 3bf1f31b..338810c7 100644 --- a/differt/src/differt/scene/sionna.py +++ b/differt/src/differt/scene/sionna.py @@ -94,7 +94,7 @@ def members(tar: tarfile.TarFile): f.flush() with tarfile.open(f.name) as tar: - tar.extractall(path=folder, members=members(tar)) + tar.extractall(path=folder, members=members(tar), filter="data") def list_sionna_scenes(*, folder: Union[str, Path] = SIONNA_SCENES_FOLDER) -> list[str]: