Skip to content

Update dependencies (2024-12-16) #888

Update dependencies (2024-12-16)

Update dependencies (2024-12-16) #888

Workflow file for this run

name: Backend Unit Tests
on:
pull_request:
paths:
- "backend/**"
- ".github/workflows/test_backend.yml"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # actions/[email protected]
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # actions/[email protected]
with:
python-version: "3.9"
cache: pipenv
cache-dependency-path: backend/Pipfile.lock
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # hashicorp/[email protected]
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # actions/[email protected]
with:
# Tool versions are defined in the Makefile.
key: backend-unit-test-tools-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('backend/Makefile') }}
path: backend/.temp
- name: Install Test Dependencies
run: |
pip install --upgrade pipenv wheel
- name: Run code style tests
run: make -C backend style-test ENV=example
- name: Run backend tests
# Parallelize tests using "worksteal" mode to better distribute our
# expensive tests.
run: make -C backend unit-test ENV=example PYTEST_EXTRA_ARGS='-n auto --dist worksteal'