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:
Kevin Turcios 2026-04-28 19:40:02 -05:00
parent f4eaffd8e8
commit cdb5aaf4cf

View file

@ -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