From d91250effa6d5e580b5d2ebbcf64b07d76f58538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Sun, 13 Aug 2023 14:00:00 +0200 Subject: [PATCH] chore: CI minversions python version fix attempt --- .github/workflows/tests.yaml | 2 +- .gitlab-ci.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 8fc1a1e5..b599c88d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -56,7 +56,7 @@ jobs: - name: App armor configuration for slapd run: sudo aa-complain /usr/sbin/slapd - name: Force minimum dependency versions - run: sed -i -E 's/"(\^|>=)([0-9])/"==\2/' pyproject.toml + run: sed -i -E 's/"(\^|>=)([0-9])/"==\2/' pyproject.toml && sed -i -E 's/python = "==/python = "^/' pyproject.toml - run: poetry --version - run: poetry install - run: poetry run pytest diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae2f2eef..fe08ab8c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,6 +55,7 @@ minversions: stage: test script: - sed -i -E 's/"(\^|>=)([0-9])/"==\2/' pyproject.toml + - sed -i -E 's/python = "==/python = "^/' pyproject.toml - poetry install - poetry run pytest