File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments