From 9d7ac0f412d9c9bc82b7b6cd801a10ce4e3a2edb Mon Sep 17 00:00:00 2001 From: Jose Javier Merchante Date: Tue, 29 Aug 2023 10:50:55 +0200 Subject: [PATCH] [ci] Install dev packages using Poetry instead of peodd Poetry supports installing packages from a specific group since version `1.2`. Replace the use of `peodd` with Poetry in the installation of the test packages. Signed-off-by: Jose Javier Merchante --- .github/workflows/release.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8bf8e50..debeb930 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,11 +62,14 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Install poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + echo "PATH=$HOME/.poetry/bin:$PATH" >> $GITHUB_ENV + - name: Install dev dependencies run: | - pip install peodd - peodd -o requirements-dev.txt - pip install -r requirements-dev.txt + poetry install --only dev --no-root - name: Set MySQL mode env: @@ -78,9 +81,9 @@ jobs: - name: Test package backend run: | PACKAGE=`(cd dist && ls *whl)` && echo $PACKAGE - pip install --pre ./dist/$PACKAGE - python manage.py test --settings=config.settings.testing - python manage.py test --settings=config.settings.testing_tenant + poetry run pip install --pre ./dist/$PACKAGE + poetry run python manage.py test --settings=config.settings.testing + poetry run python manage.py test --settings=config.settings.testing_tenant release: needs: [tests]