-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (34 loc) · 1.02 KB
/
unit_tests.yaml
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
40
41
42
43
44
45
46
47
name: unit_tests
on:
- pull_request
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- name: Download files
uses: actions/checkout@v3
- name: Create virtual environment
run: python -m venv .venv
- name: Activate virtual environment
run: source .venv/bin/activate
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install QA framework
run: pip install .[unit_testing]
- name: Run unit tests
run: python -m pytest tests/ --tb=short
windows:
runs-on: windows-2019
steps:
- name: Download files
uses: actions/checkout@v3
- name: Create virtual environment
run: python -m venv .venv
- name: Activate virtual environment
run: .venv\Scripts\activate
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install QA framework
run: pip install .[unit_testing]
- name: Run unit tests
run: python -m pytest tests/ --tb=short