chore: CI minversions python version fix attempt, again

This commit is contained in:
Éloi Rivard 2023-08-13 14:17:46 +02:00
parent d91250effa
commit c729d49b80
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184
2 changed files with 5 additions and 3 deletions

View file

@ -55,9 +55,10 @@ jobs:
run: sudo apt --yes install apparmor-utils libsasl2-dev python3-dev libldap2-dev libssl-dev slapd ldap-utils
- 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 && sed -i -E 's/python = "==/python = "^/' pyproject.toml
- run: sed -i -E 's/"(\^|>=)([0-9\.]+)(.*)"/"==\2"/' pyproject.toml
- run: sed -i -E 's/python = "==/python = "^/' pyproject.toml
- run: poetry --version
- run: poetry lock
- run: poetry install
- run: poetry run pytest
style:

View file

@ -54,8 +54,9 @@ minversions:
image: python:3.8
stage: test
script:
- sed -i -E 's/"(\^|>=)([0-9])/"==\2/' pyproject.toml
- sed -i -E 's/"(\^|>=)([0-9\.]+)(.*)"/"==\2"/' pyproject.toml
- sed -i -E 's/python = "==/python = "^/' pyproject.toml
- poetry lock
- poetry install
- poetry run pytest