ci: add CI, pre-commit, rustfmt, and dependabot configs #2
Workflow file for this run
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: Pre-commit checks | |
on: | |
push: | |
pull_request: | |
jobs: | |
pre-commit: | |
# Run on external PRs and pushes to branches on the repo | |
# This is to avoid double running on PRs from internal branches | |
if: | |
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != | |
github.repository | |
name: Linting Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Check files | |
uses: pre-commit/action@v3.0.1 |