From 12f36bc23f3ebfd4ec16695070e024691d90d39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 6 Jan 2025 15:26:26 +0100 Subject: [PATCH] Install poetry and poetry-plugin-export in github actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- .github/workflows/tests.yml | 7 ++++--- datanommer.commands/tox.ini | 7 ++----- datanommer.consumer/tox.ini | 7 ++----- datanommer.models/tox.ini | 7 ++----- 4 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b118360e..e4dba2ea0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,8 @@ jobs: - uses: actions/checkout@v4 - name: Install pre-commit - run: dnf install -y pre-commit git + run: | + dnf install -y pre-commit git krb5-devel libpq-devel poetry python3-poetry-plugin-export - name: Mark the working directory as safe for Git run: git config --global --add safe.directory $PWD @@ -36,7 +37,7 @@ jobs: - name: Install RPM dependencies run: | - dnf install -y krb5-devel libpq-devel + dnf install -y pre-commit git krb5-devel libpq-devel poetry python3-poetry-plugin-export - name: Check licenses for datanommer.${{ matrix.package }} run: tox -e licenses @@ -59,7 +60,7 @@ jobs: - name: Install RPM dependencies run: | - dnf install -y timescaledb postgresql-server krb5-devel libpq-devel + dnf install -y timescaledb postgresql-server pre-commit git krb5-devel libpq-devel poetry python3-poetry-plugin-export - name: Run unit tests for datanommer.${{ matrix.package }} # Don't run the tests as root or pg_ctl will refuse to start diff --git a/datanommer.commands/tox.ini b/datanommer.commands/tox.ini index 9c00391ef..5a6f7726c 100644 --- a/datanommer.commands/tox.ini +++ b/datanommer.commands/tox.ini @@ -7,11 +7,8 @@ isolated_build = true passenv = HOME sitepackages = false skip_install = true -# Use allowlist for poetry when poetry 1.2+ is more widespread -# allowlist_externals = -# poetry -deps = - poetry>=1.2 +allowlist_externals = + poetry env = SQLALCHEMY_WARN_20=1 commands_pre = diff --git a/datanommer.consumer/tox.ini b/datanommer.consumer/tox.ini index 9c00391ef..5a6f7726c 100644 --- a/datanommer.consumer/tox.ini +++ b/datanommer.consumer/tox.ini @@ -7,11 +7,8 @@ isolated_build = true passenv = HOME sitepackages = false skip_install = true -# Use allowlist for poetry when poetry 1.2+ is more widespread -# allowlist_externals = -# poetry -deps = - poetry>=1.2 +allowlist_externals = + poetry env = SQLALCHEMY_WARN_20=1 commands_pre = diff --git a/datanommer.models/tox.ini b/datanommer.models/tox.ini index 7d4b94291..f7bb2593e 100644 --- a/datanommer.models/tox.ini +++ b/datanommer.models/tox.ini @@ -7,11 +7,8 @@ isolated_build = true passenv = HOME sitepackages = false skip_install = true -# Use allowlist for poetry when poetry 1.2+ is more widespread -# allowlist_externals = -# poetry -deps = - poetry>=1.2 +allowlist_externals = + poetry env = SQLALCHEMY_WARN_20=1 commands_pre =