From 2280d94ac36c4db458032f2c15ab24c59ad4938e Mon Sep 17 00:00:00 2001 From: Grische <2787581+grische@users.noreply.github.com> Date: Mon, 2 Dec 2024 13:06:00 +0100 Subject: [PATCH] github: add workflow to check for pip changes --- .github/workflows/bazel-pip.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/bazel-pip.yml diff --git a/.github/workflows/bazel-pip.yml b/.github/workflows/bazel-pip.yml new file mode 100644 index 0000000..24062ae --- /dev/null +++ b/.github/workflows/bazel-pip.yml @@ -0,0 +1,23 @@ +--- +name: Bazel & PIP + +on: + push: + paths: + - 'requirements_*' + pull_request: + paths: + - 'requirements_*' + +jobs: + bazel-pip: + name: Check if pip dependencies are up to date + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Update requirements_lock.txt + run: | + bazel run //:requirements.update + - name: Check for difference + run: | + git diff --exit-code