mirror of
https://github.com/codeflash-ai/codeflash-agent.git
synced 2026-05-04 18:25:19 +00:00
fix(ci): exclude e2e tests from unit test job
The test job doesn't install Playwright browsers, so e2e tests error when pytest collects them. Ignore tests/e2e/ directories in the test job — those are handled by the dedicated e2e-blackbox job.
This commit is contained in:
parent
f4eaffd8e8
commit
cdb5aaf4cf
1 changed files with 2 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -66,12 +66,12 @@ jobs:
|
|||
- name: Test changed packages
|
||||
run: |
|
||||
if [ "${{ github.event_name }}" = "push" ]; then
|
||||
uv run pytest packages/ -v
|
||||
uv run pytest packages/ -v --ignore=packages/blackbox/tests/e2e
|
||||
else
|
||||
CHANGED='${{ needs.changes.outputs.packages }}'
|
||||
for pkg in $(echo "$CHANGED" | jq -r '.[]'); do
|
||||
echo "::group::Testing $pkg"
|
||||
uv run pytest "packages/$pkg" -v
|
||||
uv run pytest "packages/$pkg" -v --ignore="packages/$pkg/tests/e2e"
|
||||
echo "::endgroup::"
|
||||
done
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue