/
vshmidt
/
streamlit
Обзор
Документация
Войти
/
vshmidt
/
streamlit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
.github/workflows/enforce-pre-commit.yml
61 строка
2 KB
dependabot[bot]
Bump actions/cache from 4 to 5 (#13355)
15 дек 2025, 16:07
Не верифицирован
15 дек 2025, 16:07
df44de0
Код
Авторство
О чём код?
name: Enforce Pre-Commit Hooks on: push: branches: - "develop" pull_request: types: [opened, synchronize, reopened] # Allows workflow to be called from other workflows workflow_call: inputs: ref: required: true type: string # Avoid duplicate workflows on same branch concurrency: group: ${{ github.workflow }}-${{ github.ref }}-enforce-pre-commit cancel-in-progress: true jobs: enforce-pre-commit: runs-on: ubuntu-latest defaults: run: shell: bash steps: - name: Checkout Streamlit code uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} persist-credentials: false submodules: "recursive" fetch-depth: 2 - name: Set Python version vars uses: ./.github/actions/build_info - name: Set up Python ${{ env.PYTHON_MAX_VERSION }} uses: actions/setup-python@v6 with: python-version: "${{ env.PYTHON_MAX_VERSION }}" - name: Restore pre-commit cache id: cache-pre-commit uses: actions/cache@v5 with: path: ~/.cache/pre-commit key: v1-pre-commit-${{ env.pythonLocation }}-${{ hashFiles('**/.pre-commit-config.yaml') }} - name: Install pre-commit run: | pip install pre-commit pre-commit install-hooks shell: bash - name: Enable Corepack run: corepack enable shell: bash - name: Install prettier run: cd frontend && yarn install - name: Run pre-commit hooks run: PRE_COMMIT_NO_CONCURRENCY=true pre-commit run --show-diff-on-failure --color=always --all-files