fastmcp/.github/workflows/pbt-coverage.yml
Workflow config file is invalid. Please check your config file: Line: 51 Column 5: Failed to match job-factory: Line: 58 Column 7: Failed to match non-empty-string: Line: 58 Column 7: Expected a scalar got mapping Line: 58 Column 7: Failed to match concurrency-mapping: Line: 60 Column 7: Unknown Property queue Line: 51 Column 5: Failed to match workflow-job: Line: 54 Column 5: Unknown Property timeout-minutes Line: 58 Column 7: Failed to match non-empty-string: Line: 58 Column 7: Expected a scalar got mapping Line: 58 Column 7: Failed to match concurrency-mapping: Line: 60 Column 7: Unknown Property queue Line: 61 Column 5: Unknown Property steps Forgejo Actions YAML Schema validation error
Greg Aker 8e5dab4b14
Pin claude-code-action, verify the gitleaks download, and set checkout credentials explicitly (#6609)
* Bump platformdirs and markdown-it-py in lock files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Pin claude-code-action, verify gitleaks download, scope checkout credentials

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Set persist-credentials on the remaining downstream smoke checkouts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:37:44 +00:00

81 lines
2.8 KiB
YAML

name: PBT coverage map
on:
# Rebuild from the latest commit whenever code, tests or the docs that
# define the public API change; the daily run catches anything else.
push:
branches: [main]
paths:
- "fastmcp_slim/fastmcp/**"
- "tests/**"
- "docs/**"
- "scripts/pbt_coverage.py"
- "pyproject.toml"
- "uv.lock"
schedule:
- cron: "23 12 * * *"
workflow_dispatch:
pull_request:
paths:
- ".github/workflows/pbt-coverage.yml"
- "scripts/pbt_coverage.py"
- "tests/test_pbt_coverage.py"
- "status-site/pbt.js"
permissions: {}
# A newer push supersedes an older build; publishing still queues.
concurrency:
group: pbt-coverage-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# Runs repository code (the property-based suite) with a read-only token.
build:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
- name: Install dependencies
run: uv sync --frozen
- name: Run property-based tests under coverage
run: uv run scripts/pbt_coverage.py --output "$RUNNER_TEMP/pbt-coverage.json"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: pbt-coverage
path: ${{ runner.temp }}/pbt-coverage.json
retention-days: 3
# Holds the only write token and runs no repository code.
publish:
needs: build
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
concurrency:
group: maintenance-status-publish
cancel-in-progress: false
queue: max
steps:
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
with:
name: pbt-coverage
path: snapshot
- name: Commit to the status branch
env:
GH_TOKEN: ${{ github.token }}
REPOSITORY: ${{ github.repository }}
run: |
git init -q site
cd site
git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${REPOSITORY}.git"
git fetch -q --depth 1 origin status
git checkout -q -b status FETCH_HEAD
cp ../snapshot/pbt-coverage.json .
git add pbt-coverage.json
git -c user.name="github-actions[bot]" \
-c user.email="41898282+github-actions[bot]@users.noreply.github.com" \
commit -q -m "pbt coverage: $(jq -r .generated_at pbt-coverage.json)"
git push -q origin status