Skip to content

ci: retry docs deploy push with rebase on concurrent-deploy rejection #3

ci: retry docs deploy push with rebase on concurrent-deploy rejection

ci: retry docs deploy push with rebase on concurrent-deploy rejection #3

Workflow file for this run

name: CI Scripts
on:
pull_request:
paths:
- '.github/scripts/**'
- '.github/actions/**'
- '.github/workflows/**'
- '.github/build-config.json'
- 'tools/setup/**'
- 'tools/*.py'
- 'tools/uv.lock'
- 'tools/tests/**'
- 'tools/common/**'
- 'tools/generators/**'
- 'tools/analyzers/**'
- 'tools/simulation/**'
- 'tools/translations/**'
- 'deploy/docker/**'
push:
branches:
- master
- 'Stable*'
paths:
- '.github/scripts/**'
- '.github/actions/**'
- '.github/workflows/**'
- '.github/build-config.json'
- 'tools/setup/**'
- 'tools/*.py'
- 'tools/uv.lock'
- 'tools/tests/**'
- 'tools/common/**'
- 'tools/generators/**'
- 'tools/analyzers/**'
- 'tools/simulation/**'
- 'tools/translations/**'
- 'deploy/docker/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
permissions:
contents: read
jobs:
lint-workflows:
name: Lint Workflows
runs-on: ubuntu-latest
timeout-minutes: 10
# checks: write scoped here: only actionlint reports via github-pr-check.
permissions:
contents: read
checks: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 1
sparse-checkout: |
.github/.actionlint.yml
.github/workflows
.github/actions
sparse-checkout-cone-mode: false
persist-credentials: false
- name: Run actionlint
uses: reviewdog/action-actionlint@v1
with:
actionlint_flags: -config-file .github/.actionlint.yml
reporter: github-pr-check
filter_mode: added
fail_level: error
level: warning
test-ci-scripts:
name: Test CI Scripts (py${{ matrix.python-version }})
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.12']
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 1
sparse-checkout: |
.github/actions/setup-python
.github/build-config.json
.github/scripts
.github/workflows/build-results.yml
tools/pyproject.toml
tools/uv.lock
tools/*.py
tools/setup
tools/tests
tools/common
tools/generators
tools/analyzers
tools/simulation
tools/translations
deploy/docker
sparse-checkout-cone-mode: false
persist-credentials: false
- name: Setup Python
uses: ./.github/actions/setup-python
with:
groups: scripts,test
python-version: ${{ matrix.python-version }}
- name: Python syntax smoke test
run: python3 -m compileall .github/scripts tools/*.py tools/setup tools/common tools/generators tools/analyzers tools/simulation tools/translations
- name: Run CI script tests
run: pytest -q tools/tests .github/scripts/tests