From 3fc25f6230344cfd59bde14d653b4401fcec595b Mon Sep 17 00:00:00 2001 From: Joe Kaufeld Date: Mon, 8 Aug 2022 00:38:56 -0400 Subject: [PATCH] really update workflows --- .github/workflows/build_and_release.yml | 11 ++++++----- .github/workflows/test_build.yml | 14 +++++++------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 08a648ce..be462999 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -15,13 +15,14 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.10.x' - - name: Install Env - # shiv will download the dependencies it needs on its own + - uses: snok/install-poetry@v1.3.1 + with: + virtualenvs-create: true + - name: Install Dependencies run: | pip install --upgrade pip - pip install shiv - pip install poetry - pip install poetry2setup + sudo apt-get install libjpeg8 libjpeg-dev libpng-dev libpq-dev -y + poetry install - name: Add CURRENT_TIME env property # the smart thing to do here would be to use the commit hash, but # github releases are ALPHABETIZED, so a commit hash of `abcdef` will diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml index 53969886..3532edbf 100644 --- a/.github/workflows/test_build.yml +++ b/.github/workflows/test_build.yml @@ -1,4 +1,4 @@ -name: Release +name: Test Build on: [pull_request] @@ -12,14 +12,14 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.10.x' - - name: Install Env - # shiv will download the dependencies it needs on its own + - uses: snok/install-poetry@v1.3.1 + with: + virtualenvs-create: true + - name: Install Dependencies run: | pip install --upgrade pip - pip install shiv - pip install poetry - pip install django==3 - pip install poetry2setup + sudo apt-get install libjpeg8 libjpeg-dev libpng-dev libpq-dev -y + poetry install - name: Add CURRENT_TIME env property # the smart thing to do here would be to use the commit hash, but # github releases are ALPHABETIZED, so a commit hash of `abcdef` will