Skip to content
Open
Show file tree
Hide file tree
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
20 changes: 19 additions & 1 deletion .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ on:
- 'docs/**'
tags-ignore:
- v**
branches:
- feature/*

workflow_call:

permissions:
contents: read
packages: read
checks: write

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -107,9 +111,23 @@ jobs:
poetry run pytest \
--cov=c2pie \
-m "not e2e" \
--maxfail=1 \
--junit-xml=test-report-${{ matrix.os }}-${{ matrix.python-version }}.xml \
-v

- name: Publish test report
uses: dorny/test-reporter@v1
if: always()
with:
name: Unit Tests Report
path: test-report-${{ matrix.os }}-${{ matrix.python-version }}.xml
reporter: java-junit
# Not set action as failed if test report contains any failed test
fail-on-error: false
# # Allows generate only summary without all tests list for more clear results
# only-summary: true
# list-suites: failed
list-tests: failed

- name: Upload coverage artifact
if: (matrix.python-version == '3.12') && (matrix.os == 'ubuntu-latest')
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist
**/.ipynb_checkpoints
**/.Trash*
**/.DS_Store
.coverage
2 changes: 1 addition & 1 deletion tests/c2pa/claim_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_create_claim_with_label():
)

assert test_claim is not None
assert test_claim.claim_generator == "c2pie"
assert test_claim.claim_generator == "cpie"
assert test_claim.manifest_label == "valid_manifest_label"
assert test_claim.claim_signature_label == "self#jumbf=c2pa/valid_manifest_label/c2pa.signature"

Expand Down