From a1ce3a928b79a9099b8615791311d4e2c40087f0 Mon Sep 17 00:00:00 2001 From: Becky Smith Date: Wed, 16 Oct 2024 13:01:40 +0100 Subject: [PATCH] Add workflow to update python dependencies Using the new opensafely-core/update-dependencies-action --- .github/workflows/update-dependencies.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/update-dependencies.yml diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml new file mode 100644 index 00000000..68cda889 --- /dev/null +++ b/.github/workflows/update-dependencies.yml @@ -0,0 +1,19 @@ +name: Update python dependencies + +on: + workflow_dispatch: + schedule: + - cron: "0 23 * * *" +jobs: + update-dependencies: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: "opensafely-core/setup-action@v1" + with: + python-version: "3.11" + install-just: true + - uses: opensafely-core/update-dependencies-action@main + with: + update_command: "just compile-reqs -U" + on_changes_command: "just test-all"