| # |
| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| |
| name: PR CI scripts validation |
| on: |
| pull_request: |
| branches: |
| - main |
| paths: |
| - '.github/actions/check-container-upgrade/**' |
| - '.github/actions/incremental-build/**' |
| |
| concurrency: |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| cancel-in-progress: true |
| |
| permissions: |
| contents: read |
| |
| jobs: |
| test: |
| if: github.repository == 'apache/camel' |
| runs-on: ubuntu-latest |
| steps: |
| - name: Checkout camel repo |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| with: |
| persist-credentials: false |
| |
| - name: Test the container upgrade scripts |
| shell: bash |
| run: | |
| cd .github/actions/check-container-upgrade |
| python3 -m unittest discover --verbose |
| |
| # collect-flakes.py declares defusedxml inline (PEP 723); uv resolves it. |
| - name: Install uv |
| uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 |
| with: |
| enable-cache: true |
| version: "0.12.5" |
| python-version: "3.11" |
| |
| - name: Test the incremental build scripts |
| shell: bash |
| run: | |
| cd .github/actions/incremental-build |
| uv run --with defusedxml python3 -m unittest discover --verbose |