forked from Github-Mirrors/canaille
chore: CI minversions python version fix attempt, again
This commit is contained in:
parent
d91250effa
commit
c729d49b80
2 changed files with 5 additions and 3 deletions
5
.github/workflows/tests.yaml
vendored
5
.github/workflows/tests.yaml
vendored
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue