Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  weekly-lints.yml  Sprache: unbekannt

 
Spracherkennung für: .yml vermutete Sprache: MT940 {MT940[38] Python[36] ABAP[24]} [Methode: maximale Elemente, drei Dimensionen]

name: Weekly linting report

on:
  schedule:
    - cron: '0 5 * * 1'  # Run at 05:00 UTC every Monday
  workflow_dispatch:

env:
  TOP_MODULE: Mathlib

jobs:
  weekly-lints:
    name: Build
    runs-on: pr
    if: github.repository == 'leanprover-community/mathlib4'
    steps:
    - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
      with:
        ref: master

    - name: Checkout local actions
      uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
      with:
        ref: ${{ github.workflow_sha }}
        fetch-depth: 1
        sparse-checkout: .github/actions
        path: workflow-actions
    - name: Get mathlib-ci
      id: mathlib-ci
      uses: ./workflow-actions/.github/actions/get-mathlib-ci

    - name: Configure Lean
      uses: leanprover/lean-action@fe408643ea7367d8c0404a8be3975bb145f5fb64 # v1.7.0
      with:
        auto-config: false
        use-github-cache: false
        use-mathlib-cache: false
        reinstall-transient-toolchain: true

    - name: add weekly linting option
      run: |
        # we disable checking for backticks inside single quotes with the next line
        # shellcheck disable=SC2016
        # Enable the linter
        sed -i -- '/^  -- '\`'latest_import.yml'\`' uses this comment/{s=^=  ⟨`linter.weeklyLintSet, true⟩,\n=}' lakefile.lean

        # stage the changes in git so that `git diff` can confirm what changed
        git add -u
        git diff HEAD #lakefile.lean

        printf $'\n\nRunning a test %slake build` to verify, for instance, the absence of import loops\n' $'`'
        lake build Mathlib.Init

    - name: Add GitHub problem matcher wrapper
      uses: leanprover-community/gh-problem-matcher-wrap@65a654fcdf7b64ff7633bc7a558f7b46d59a27bf # 2026-06-25
      with:
        action: add
        linters: lean

    - name: build mathlib
      id: build
      continue-on-error: true
      env:
        REPO: ${{ github.repository }}
        SHA: ${{ github.sha }}
        REF: ${{ steps.mathlib-ci.outputs.ref }}
      run: |
        # The default step shell is `bash -e` without `pipefail`, so the status of
        # `lake build | tee` would be tee's. Make the pipeline report lake's instead.
        set -o pipefail
        # Use a temporary file to ensure we don't overflow max variable size.
        lean_outfile=$(mktemp)
        # Show the stdout in the GitHub build logs, while we process it from the file.
        build_status=0
        lake build | tee "${lean_outfile}" || build_status=$?
        if [ "${build_status}" -eq 0 ]; then build_success=true; else build_success=false; fi

        # Process output for posting to Zulip.
        # The description links to the linter set, this workflow and the reporting script.
        blob="https://github.com/${REPO}/blob/${SHA}"
        INFO=true \
        SUCCESS="${build_success}" \
        LOCATIONS_MAX_COUNT=2 \
        MAX_ROWS=20 \
        DESCRIPTION="\`lake build\` with [\`linter.weeklyLintSet\`](${blob}/Mathlib/Init.lean) enabled ([workflow](${blob}/.github/workflows/weekly-lints.yml), [reporting script](https://github.com/leanprover-community/mathlib-ci/blob/${REF}/scripts/reporting/zulip_build_report.sh))." \
          "${CI_SCRIPTS_DIR}/reporting/zulip_build_report.sh" "${lean_outfile}" > "${GITHUB_OUTPUT}"

    - name: Remove GitHub problem matcher wrapper
      uses: leanprover-community/gh-problem-matcher-wrap@65a654fcdf7b64ff7633bc7a558f7b46d59a27bf # 2026-06-25
      with:
        action: remove
        linters: lean

    - name: Post output to Zulip
      uses: zulip/github-actions-zulip/send-message@f675f2b4eb2a95fae974215476dcb7ad8dfeff6b # v2.0.2
      with:
        api-key: ${{ secrets.ZULIP_API_KEY }}
        email: '
github-mathlib4-bot@leanprover.zulipchat.com'
        organization-url: 'https://leanprover.zulipchat.com'
        to: 'mathlib4'
        type: 'stream'
        topic: Weekly linting log
        content: ${{ steps.build.outputs.zulip-message }}

[Dauer der Verarbeitung: 0.5 Sekunden, vorverarbeitet 2026-11-18]

                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,106
#Domains=862,740