-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (34 loc) · 853 Bytes
/
test.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
32
33
34
35
36
37
38
39
# This workflow will install Python dependencies, run tests for a single version of Python (3.9)
name: Python application
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cd backend
pip install -r requirements.txt
- name: Test
run: |
cd backend
python -m unittest discover .
- name: View Coverage
run: |
cd backend
coverage run --source=code -m unittest discover -s .
coverage report -m