Conversation
| with: | ||
| python-version: "3.12" | ||
| - run: pip install pytest | ||
| - run: python -m pytest tests/ -v --tb=short 2>&1 || true |
There was a problem hiding this comment.
🔴 || true suppresses all test failures, making CI always pass
The pytest command ends with || true, which forces the step to exit with code 0 regardless of whether tests pass or fail. This completely defeats the purpose of a CI pipeline — broken code will never be caught. The || true should be removed so that test failures are properly reported.
| - run: python -m pytest tests/ -v --tb=short 2>&1 || true | |
| - run: python -m pytest tests/ -v --tb=short |
Was this helpful? React with 👍 or 👎 to provide feedback.
Debug
| with: | ||
| python-version: "3.12" | ||
| - run: pip install pytest | ||
| - run: python -m pytest tests/ -v --tb=short 2>&1 || true |
There was a problem hiding this comment.
🔴 pytest is pointed at non-existent tests/ directory
The workflow runs pytest tests/, but there is no tests/ directory in the repository. The test file is test_conformance.py at the repo root, and pyproject.toml:23 configures testpaths = ["."]. This means pytest will find zero tests and the run will be vacuously empty (or fail outright). The command should either point to . or omit the path argument to let pyproject.toml configuration take effect.
| - run: python -m pytest tests/ -v --tb=short 2>&1 || true | |
| - run: python -m pytest -v --tb=short |
Was this helpful? React with 👍 or 👎 to provide feedback.
Debug
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| - run: pip install pytest |
There was a problem hiding this comment.
🔴 CI installs only pytest but not the project's own dependencies
The workflow runs pip install pytest but never installs the project itself or its dependencies (e.g., pip install . or pip install -e .). Since the test file (test_conformance.py) imports conformance_core, and the project defines its build system in pyproject.toml, the tests may fail to import project modules unless they happen to work as raw scripts from the repo root. This is fragile and inconsistent with the project's pyproject.toml setup.
| - run: pip install pytest | |
| - run: pip install -e . |
Was this helpful? React with 👍 or 👎 to provide feedback.
Adds CI workflow for automated testing on push and PR.