Skip to content

Commit 52469c5

Browse files
committed
ops: validate about.toml covers all 3p licenses in testing
1 parent 9bde78f commit 52469c5

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/_test.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,25 @@ jobs:
6262
if: ${{ startsWith(matrix.platform.runner, 'windows') }}
6363
shell: cmd # Use `cmd` to run test for Windows, as PowerShell doesn't detect exit code by `os._exit(0)` correctly.
6464
run: |
65-
${{ matrix.platform.python_exec }} -m pytest --capture=no python/cocoindex/tests
65+
${{ matrix.platform.python_exec }} -m pytest --capture=no python/cocoindex/tests
66+
67+
validate-3p-notices:
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v4
71+
- name: Rust Cache
72+
uses: Swatinem/rust-cache@v2
73+
- name: Install Rust toolchain
74+
uses: dtolnay/rust-toolchain@stable
75+
- name: Install cargo-about
76+
run: cargo install --locked cargo-about
77+
- name: Validate third-party notices (dry-run)
78+
shell: bash
79+
run: |
80+
set +e
81+
cargo about generate about.hbs > /dev/null
82+
status=$?
83+
if [ $status -ne 0 ]; then
84+
echo "::error::Third-party notices validation failed. Please update `/about.toml` and rerun."
85+
exit $status
86+
fi

0 commit comments

Comments
 (0)