Skip to content

Commit

Permalink
Fix Poetry configuration
Browse files Browse the repository at this point in the history
- Fix Poetry configuration for Poetry 2.0.0
- Use Poetry virtualenv in GitHub Actions workflow
- Only install dev dependencies in devcontainer
  • Loading branch information
praseodym committed Feb 19, 2025
1 parent 18b205a commit 8a7a2d3
Show file tree
Hide file tree
Showing 5 changed files with 830 additions and 522 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ ENV PYTHONUNBUFFERED 1

RUN pip3 install poetry
RUN poetry config virtualenvs.create false
RUN poetry install
RUN poetry install --with dev
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
- name: Install dependencies using Poetry
run: poetry install
- name: Run migrations
run: python manage.py migrate
run: poetry run ./manage.py migrate
- name: Run tests
run: python manage.py test
run: poetry run ./manage.py test
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN export DEBIAN_FRONTEND="noninteractive" && \
rm -rf /tmp/* /var/lib/apt/lists/*

RUN poetry config virtualenvs.create false
RUN poetry install --no-root --no-dev
RUN poetry install --no-root
RUN set -a && . ./ci.env && python manage.py collectstatic --noinput --no-post-process

RUN groupadd -r dienst2 --gid=999 && useradd --no-log-init -r -g dienst2 --uid=999 dienst2
Expand Down
Loading

0 comments on commit 8a7a2d3

Please sign in to comment.