Bump @npmcli/arborist from 9.1.3 to 9.1.4 in the npm-dependencies group across 1 directory #1362
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🏃🏼 Run pre-commit | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
pre-commit: | |
name: 🏃🏼 Pre-commit on ${{ matrix.os }} / Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ['3.13', '3.12', '3.11'] | |
steps: | |
- name: 🍎 Fix macOS gettext issue | |
if: runner.os == 'macOS' | |
run: | | |
brew install gettext | |
brew link --force gettext | |
- name: ↩️ Checkout code | |
uses: actions/checkout@v5 | |
- name: 🔧 Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: 'x64' | |
- name: 🪛 Set PY (Python version hash) | |
shell: bash | |
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV" | |
- name: 💾 Cache pre-commit hooks | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit|${{ runner.os }}|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: 💾 Cache pip downloads | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: pip|${{ runner.os }}|${{ env.PY }}|${{ hashFiles('**/requirements*.txt', '.pre-commit-config.yaml') }} | |
- name: 🪛 Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: 🏃🏻♂️➡️ Run pre-commit | |
run: pre-commit run --all-files | |
- name: 🏃🏻♂️➡️ Run pre-commit | |
run: pre-commit run --all-files --hook-stage manual |