Skip to content

ci: try adding pytest matrix summary step #661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/python_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
name: pytest-no-creds-test-logs
path: /tmp/airbyte/logs/

pytest:
pytest-matrix:
name: Pytest (All, Python ${{ matrix.python-version }}, ${{ matrix.os }})
# Don't run on forks. Run on pushes to main, and on PRs that are not from forks.
if: >
Expand Down Expand Up @@ -200,6 +200,23 @@ jobs:
name: py${{ matrix.python-version }}-${{ matrix.os }}-test-logs
path: /tmp/airbyte/logs/

pytest-matrix-summary:
name: Pytest Matrix Summary Check
runs-on: ubuntu-latest
needs: pytest-matrix
steps:
- name: Aggregate matrix results
if: always()
run: |
echo "${{ toJson(needs.pytest-matrix) }}" > results.json
fail_count=$(jq '[.[]? | select(.result != "success")] | length' results.json)
if [ "$fail_count" -gt 0 ]; then
echo "💥 $fail_count matrix item(s) failed"
exit 1
else
echo "✅ All matrix items passed (or matrix was empty)"
fi

dependency-analysis:
name: Dependency Analysis with Deptry
runs-on: ubuntu-latest
Expand Down
Loading