forked from frlp-utn-ingsoft/vetsoft
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (27 loc) · 928 Bytes
/
ci.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
name: ci
on:
pull_request:
branches: [main]
jobs:
tests:
name: tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r requirements.txt
- name: Install playwright
run: playwright install
- name: Run static test
run: ruff check
- name: Run unit and integration tests
run: coverage run --source="./app" --omit="./app/migrations/**" manage.py test app
- name: Check coverage
run: coverage report --fail-under=77
- name: Run e2e tests
run: python manage.py test functional_tests