diff --git a/.github/workflows/copyright-license-check-all-files.yml b/.github/workflows/copyright-license-check-all-files.yml new file mode 100644 index 00000000..67091886 --- /dev/null +++ b/.github/workflows/copyright-license-check-all-files.yml @@ -0,0 +1,13 @@ +# SPDX-FileCopyrightText: 2026 The P4 Language Consortium +# +# SPDX-License-Identifier: Apache-2.0 + +name: Verify all files have copyright and license annotation + +on: + pull_request: + branches: [master] + +jobs: + verify-licenses: + uses: p4lang/.github/.github/workflows/copyright-license-check-all-files-reusable.yml@main diff --git a/.github/workflows/test-exercises.yml b/.github/workflows/test-exercises.yml index 61105396..c1ada818 100644 --- a/.github/workflows/test-exercises.yml +++ b/.github/workflows/test-exercises.yml @@ -15,17 +15,6 @@ concurrency: cancel-in-progress: true jobs: - verify-licenses: - runs-on: ubuntu-latest - name: Validate that all files have copyright and license info - steps: - - uses: actions/checkout@v6 - - name: Install REUSE - run: | - ./CI/install-uv.sh - - name: Validate presence of copyright and license info (python w/reuse) - run: | - uvx reuse lint test-exercise: timeout-minutes: 30 runs-on: ubuntu-latest diff --git a/CI/install-uv.sh b/CI/install-uv.sh deleted file mode 100755 index 4a9d68d2..00000000 --- a/CI/install-uv.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash -# SPDX-FileCopyrightText: 2026 The P4 Language Consortium -# SPDX-License-Identifier: Apache-2.0 - -set -eu - -UV_VERSION="${UV_VERSION:-0.11.7}" -UV_INSTALL_DIR="${HOME}/.local/bin" - -if command -v uv >/dev/null 2>&1; then - exit 0 -fi - -mkdir -p "${UV_INSTALL_DIR}" - -if command -v curl >/dev/null 2>&1; then - env UV_UNMANAGED_INSTALL="${UV_INSTALL_DIR}" \ - sh -c "$(curl -LsSf https://astral.sh/uv/${UV_VERSION}/install.sh)" -elif command -v wget >/dev/null 2>&1; then - env UV_UNMANAGED_INSTALL="${UV_INSTALL_DIR}" \ - sh -c "$(wget -qO- https://astral.sh/uv/${UV_VERSION}/install.sh)" -else - echo "Neither curl nor wget is available to install uv" >&2 - exit 1 -fi - -export PATH="${UV_INSTALL_DIR}:${PATH}" -if [ -n "${GITHUB_PATH:-}" ]; then - echo "${UV_INSTALL_DIR}" >> "${GITHUB_PATH}" -fi