-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (29 loc) · 1.17 KB
/
test_backend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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@6849a6489940f00c2f30c0fb92c6274307ccb58a # 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
run: make -C backend unit-test ENV=example