-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (42 loc) · 1.23 KB
/
maa-lab3.yml
File metadata and controls
51 lines (42 loc) · 1.23 KB
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
48
49
50
51
name: SAE Lab3 Tests
on:
pull_request:
paths:
- 'students_folder/melnikova/**'
- 'tests/Melnikova/**'
- 'tests/src/Melnikova/**'
workflow_dispatch:
jobs:
maa-lab3-tests:
name: Run MAA Lab3 Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Cache pip packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('/pyproject.toml', '**/tox.ini') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run MAA Lab3 Tests
run: tox -e maa_lab3
- name: Show tox environments
if: failure()
run: tox list
- name: Show test files found
if: failure()
run: |
echo "=== Test files with maa_lab3 marker ==="
find tests/ -name "*.py" -exec grep -l "maa_lab3" {} \; || true
echo "=== All test files ==="
find tests/ -name "test_*.py" || true