Skip to content

Commit

Permalink
Switch to poetry for functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Oct 18, 2024
1 parent a1f524f commit 0e181ab
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0e181ab

Please sign in to comment.