Skip to content

Add Plugin Runner Toolbox #836

Add Plugin Runner Toolbox

Add Plugin Runner Toolbox #836

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/checkout@v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # actions/setup-python@v5.3.0
with:
python-version: "3.9"
cache: pipenv
cache-dependency-path: backend/Pipfile.lock
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # hashicorp/setup-terraform@v3.1.2
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # actions/cache@v4.1.2
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
run: make -C backend unit-test ENV=example