Skip to content

ci: update to run CLI on CI workflow#188

Merged
ktro2828 merged 2 commits into
mainfrom
ci/run-cli
Sep 2, 2025
Merged

ci: update to run CLI on CI workflow#188
ktro2828 merged 2 commits into
mainfrom
ci/run-cli

Conversation

@ktro2828

@ktro2828 ktro2828 commented Sep 2, 2025

Copy link
Copy Markdown
Collaborator

What

This pull request introduces improvements to the testing workflow and test code, mainly focused on better test coverage and maintainability. The most important changes include adding CLI smoke tests to the CI pipeline and refactoring the lanelet parser test to use a reusable fixture for the map path.

CI workflow enhancements:

  • Added a new step in .github/workflows/build-and-test.yaml to run various CLI commands (t4viz scene, t4viz instance, t4viz pointcloud, t4sanity) on sample data as part of the CI process, improving smoke test coverage for CLI tools.

Test code improvements:

  • Introduced a new dummy_lanelet_path fixture in tests/conftest.py to provide a reusable path to the lanelet map file for tests.
  • Updated test_lanelet_parser in tests/lanelet/test_parser.py to use the new dummy_lanelet_path fixture, improving test maintainability and consistency.

Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
Copilot AI review requested due to automatic review settings September 2, 2025 06:13
@github-actions github-actions Bot added the ci Continuous Integration (CI) processes and testing label Sep 2, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request enhances testing infrastructure by adding CLI smoke tests to the CI pipeline and refactoring test code to use consistent fixtures. The changes improve test coverage and maintainability by standardizing the way sample data paths are referenced across tests.

  • Added CLI smoke tests to the CI workflow for better coverage of command-line tools
  • Refactored test fixtures to use centralized dummy_lanelet_path fixture
  • Updated sample dataset path references for consistency

Reviewed Changes

Copilot reviewed 5 out of 32 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/build-and-test.yaml Added CLI smoke tests step to run various t4viz and t4sanity commands
tests/conftest.py Added dummy_lanelet_path fixture for consistent lanelet map file path
tests/lanelet/test_parser.py Updated to use new dummy_lanelet_path fixture instead of hardcoded path
tests/viewer/test_viewer.py Updated to use new dummy_lanelet_path fixture instead of hardcoded path
tests/test_tier4.py Renamed fixture and updated dataset path references for consistency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread tests/conftest.py

@pytest.fixture(scope="session")
def dummy_lanelet_path() -> str:
return "tests/sample/t4dataset/map/lanelet2_map.osm"

Copilot AI Sep 2, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using Path objects for file paths to improve cross-platform compatibility and consistency with other fixtures in the codebase.

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/build-and-test.yaml
@github-actions

github-actions Bot commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
2645 2003 76% 50% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 747daa0 by action🐍

Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@ktro2828 ktro2828 merged commit 682cbfb into main Sep 2, 2025
5 checks passed
@ktro2828 ktro2828 deleted the ci/run-cli branch September 2, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous Integration (CI) processes and testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants