fix: PyYAML dependency install (check #183) (temporary) (#272)

* fix: PyYAML dependency install (check #183)

* misc: update gh-actions (versions, and add temporary patch)

* misc: revert to python 3.9
This commit is contained in:
Jeremy Chabernaud 2023-07-18 13:45:05 +02:00 committed by GitHub
parent ef32c66769
commit 4d9a5fdaad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -27,11 +27,12 @@ jobs:
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.6
poetry-version: 1.2.2
- name: Preinstall dependencies (temporary)
run: poetry run pip install "Cython<3.0" "pyyaml==5.4.1" --no-build-isolation
- name: Install dependencies
run: poetry install
- name: Django Testing project
run: |
cp TEMPLATE.env .env
poetry run ./shynet/manage.py test
poetry run ./shynet/manage.py test

View File

@ -30,6 +30,7 @@ RUN apk add --no-cache postgresql-libs && \
# Install Python dependencies
RUN poetry config virtualenvs.create false && \
poetry run pip install "Cython<3.0" "pyyaml==5.4.1" --no-build-isolation && \
poetry install --no-dev --no-interaction --no-ansi
# Cleanup dependencies & setup user group