-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 932 Bytes
/
ci.yml
File metadata and controls
42 lines (35 loc) · 932 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
37
38
39
40
41
42
name: Run Unit and Integration Tests with pytest
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Set up Python
- name: Set up Python 3.12.3
uses: actions/setup-python@v4
with:
python-version: '3.12.3'
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Run tests in unit_tests directory
- name: Run tests in unit_tests
run: |
cd unit_tests
pytest --disable-warnings -q
# Run tests in integration_tests directory
- name: Run tests in integration_tests
run: |
cd integration_tests
pytest --disable-warnings -q