From 0e181ab7dc264016e14ba4d0909a1e1b4617aff5 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Fri, 18 Oct 2024 20:42:08 +0200 Subject: [PATCH] Switch to poetry for functional tests --- .github/workflows/functional-tests.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 367edc25f..52228cd8a 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -49,11 +49,14 @@ jobs: - uses: actions/setup-node@v4 with: node-version: latest - - name: Install requirements + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: false + installer-parallel: true + - name: Install backend requirements working-directory: ${{ env.backend-directory }} - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + run: poetry install - name: Install dependencies working-directory: ${{ env.frontend-directory }} run: | @@ -92,14 +95,14 @@ jobs: working-directory: ${{ env.backend-directory }} run: | export $(grep -v '^#' .env | xargs) - python manage.py makemigrations - python manage.py migrate + poetry run python manage.py makemigrations + poetry run python manage.py migrate - name: Start test server working-directory: ${{ env.backend-directory }} run: | export $(grep -v '^#' .env | xargs) - python manage.py createsuperuser --noinput - nohup python manage.py runserver & + poetry run python manage.py createsuperuser --noinput + nohup poetry run python manage.py runserver & - name: Build frontend working-directory: ${{ env.frontend-directory }} run: pnpm run build