From 6e3b8932050b86c60baee283106a62ba776e5058 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Wed, 20 May 2020 22:16:02 +0200 Subject: [PATCH] Add workflow to update Pipfile.lock weekly (#1542) * Create workflow to update the Pipfile.lock weekly * Update-pipfile: Also install wheel * Install wheel in different step * Pipfile: Only lock major versions Assumes Semantic Versioning, and only sets the major versions of all packages * Run update-pipfile on changes in pipfile and use tensorflow Move from tensorflow-gpu to tensorflow, an excelent test for this PR * [create-pull-request] automated change Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> old-commit-hash: b1795235f9767ac38f1bc8c7cd2dee9d4f646cf6 --- .github/workflows/update-pipfile.yml | 25 +++++++++++++++++++++++++ Pipfile | 4 ++-- Pipfile.lock | 4 ++-- 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/update-pipfile.yml diff --git a/.github/workflows/update-pipfile.yml b/.github/workflows/update-pipfile.yml new file mode 100644 index 0000000000..018eb9e12d --- /dev/null +++ b/.github/workflows/update-pipfile.yml @@ -0,0 +1,25 @@ +name: "Update Pipfile.lock" +on: + schedule: + - cron: '00 08 * * 1' # Every monday on 08:00 UTC + push: + paths: + - 'Pipfile' + +jobs: + piplock: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - run: pip install wheel + - run: pip install pipenv + - run: pipenv lock --requirements + - uses: actions/upload-artifact@v2 + with: + name: "Pipfile lock" + path: Pipfile.lock + - uses: peter-evans/create-pull-request@v2 + with: + title: "Update Pipfile.lock (dependencies)" + branch: update-pipfile diff --git a/Pipfile b/Pipfile index 11478e01ea..d0c6b8ee29 100644 --- a/Pipfile +++ b/Pipfile @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cea367bec17a6ab70a2f9bde13478bd5086d58fe950582791e518f2008c49275 -size 2049 +oid sha256:48daf8ab5c86410503faaec54272993937b8dc2fd6793243689e91872f53136f +size 2026 diff --git a/Pipfile.lock b/Pipfile.lock index ca24a165c1..b7888c95f3 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0a4c95baea82430dbc30b744f9247c59b300744a3bae619b0aeb8b0c8e0c5418 -size 165615 +oid sha256:d83cbfc6d5133bc70781d6eca454685b6946306d93f02296a13e877589ae783c +size 156776