Skip to content

Need to fix the update part of this #4643

Need to fix the update part of this

Need to fix the update part of this #4643

Workflow file for this run

name: Pytest
on: push
defaults:
run:
working-directory: backend
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel
- id: cache-pipenv
uses: actions/cache@v3
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pipenv install --deploy --dev
- name: Start env
run: docker compose -f ../docker-compose.dev.yml up -d
# wait for docker containers to come up before running tests
- name: Sleep for 60 seconds
run: sleep 60s
shell: bash
- name: Run test suite
run: |
pipenv run pytest -v