-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (29 loc) · 928 Bytes
/
test-backend.yml
File metadata and controls
36 lines (29 loc) · 928 Bytes
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
32
33
34
35
36
name: Backend Service Testing ( Pytest )
on:
push:
branches: ["master", "dev"]
pull_request:
branches: ["dev"]
jobs:
run_backend_tests:
runs-on: ubuntu-latest
steps:
- name: Enable Access for Branch for Workflow
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.12.2
- name: Install Poetry
working-directory: api
run: pip install poetry==1.8.2
- name: Install Dependencies
working-directory: api
run: |
poetry install
poetry run prisma generate
- name: Run test cases
working-directory: api
env:
DATABASE_URL: ""
run: poetry run pytest -m github_actions