Skip to content

Commit

Permalink
add pr-checks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaiahWren committed Jan 22, 2025
1 parent bcac18e commit 611ceee
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "PR checks"

on:
pull_request:
branches: [ 'devel', ]

jobs:

pr-checks:
runs-on: ubuntu-latest
steps:

- name: "Checkout metrics-utility (${{ github.ref }})"
uses: actions/checkout@v4

- name: "Install python 3.11"
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: "Install uv"
run: |
pip install uv
- name: "Install pre-commit"
run: |
pip install pre-commit
- name: "Check for changes in uv.lock file"
run: |
# fail if uv sync had to change uv.lock
uv sync
git diff --exit-code uv.lock

0 comments on commit 611ceee

Please sign in to comment.