-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (30 loc) · 889 Bytes
/
basic-tests.yml
File metadata and controls
37 lines (30 loc) · 889 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
name: Basic Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test-basic:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install minimal dependencies
run: |
python -m pip install --upgrade pip
pip install pytest numpy opencv-python-headless
- name: Test basic imports
run: |
cd tests
python -c "import sys; sys.path.insert(0, '../gui'); import utility; print('Utility module imported successfully')"
- name: Run basic tests
run: |
cd tests
python -m pytest unit/test_utility.py -v