maa_lab5 #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |