From 611ceeef016f6f44e2adb1b40db7d1022839bd31 Mon Sep 17 00:00:00 2001 From: Shaiah Emigh-Doyle Date: Wed, 22 Jan 2025 11:59:11 -0500 Subject: [PATCH] add pr-checks.yml --- .github/workflows/pr-checks.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..058af1f --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -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 \ No newline at end of file