Skip to content
Merged
Changes from all commits
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
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:

env:
UV_PYTHON: 3.8 # minimum supported version
DASL_TESTING_REF: "56f7fd74a8eb0955670dab139034e845329dca57"

jobs:
unit_tests:
Expand All @@ -29,3 +30,41 @@ jobs:

- name: Run Tests.
run: uv run pytest

- name: Checkout dasl-testing.
uses: actions/checkout@v4
with:
repository: hyphacoop/dasl-testing
path: dasl-testing
ref: ${{ env.DASL_TESTING_REF }}

- name: Run DASL Python harness.
working-directory: dasl-testing/harnesses/python
env:
UV_PYTHON: "3.13" # DASL testing requires Python 3.13+
run: |
RESULT_JSON=$(uv run --with cbor2 python main.py libipld)

{
echo "## DASL Results"
echo
echo "Metadata:"
echo
echo "- Link: $(echo "$RESULT_JSON" | jq -r '.metadata.link')"
echo "- Version: $(echo "$RESULT_JSON" | jq -r '.metadata.version')"
echo
echo "### Per-file summary"
echo
echo "| File | Total | Passed | Failed |"
echo "|------|-------|--------|--------|"
echo "$RESULT_JSON" | jq -r '
.files
| to_entries[]
| .key as $file
| ( [ .value[] | .pass ] ) as $passes
| ($passes | length) as $total
| ($passes | map(select(. == true)) | length) as $passed
| ($total - $passed) as $failed
| "| \($file) | \($total) | \($passed) | \($failed) |"
'
} >> "$GITHUB_STEP_SUMMARY"
Loading