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