Skip to content

Add GO Adventure Ready Skid Plate #30

Add GO Adventure Ready Skid Plate

Add GO Adventure Ready Skid Plate #30

name: Pull Request Workflow
on:
pull_request:
workflow_dispatch:
permissions: read-all
jobs:
Pre-commit:
runs-on: ubuntu-latest
env:
PIP_CACHE_DIR: ""
PYTHON_VERSION: "3.12"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Create a Requirements file for Python Packages
run: |
echo "pre-commit>=3.8" >> requirements-pr.txt
- name: Get and set pip cache dir
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> "$GITHUB_ENV"
- name: Use cached Python dependencies
uses: actions/cache@v4
with:
path: |
${{ env.PIP_CACHE_DIR }}
/opt/hostedtoolcache/Python/*
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-pr.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip' # caching pip dependencies
cache-dependency-path: '**/requirements-pr.txt'
- run: pip install -r requirements-pr.txt
- name: Log Pre-commit Versions
run: |
echo "Python: $(python -m pip --version)"
echo "Pre-commit: $(pre-commit --version)"
- name: Run pre-commit
run: pre-commit run --all-files