This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
Add deprecation message #10
This file contains 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 checks | |
on: | |
push: | |
pull_request: | |
jobs: | |
run-linters: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Configure caching | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: precommit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Install pre-commit | |
run: | | |
pip install pre-commit | |
- name: Install required packages | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install jsonnet | |
- name: Run linters | |
run: | | |
pre-commit run --all-files |