diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index d813008..7211785 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -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 }} @@ -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 diff --git a/.gitignore b/.gitignore index f74909d..8a1af5f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ dist **/.ipynb_checkpoints **/.Trash* **/.DS_Store +.coverage diff --git a/tests/c2pa/claim_test.py b/tests/c2pa/claim_test.py index 987994f..055c7c5 100644 --- a/tests/c2pa/claim_test.py +++ b/tests/c2pa/claim_test.py @@ -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"