File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ pull_request :
7+ branches : [ main, master ]
8+ workflow_dispatch :
9+
10+ jobs :
11+ test :
12+ runs-on : ubuntu-latest
13+
14+ strategy :
15+ matrix :
16+ python-version : ["3.9", "3.10", "3.11"]
17+
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Set up Python
22+ uses : actions/setup-python@v5
23+ with :
24+ python-version : ${{ matrix.python-version }}
25+
26+ - name : Install pytest
27+ run : |
28+ python -m pip install --upgrade pip
29+ pip install pytest
30+
31+ - name : Run tests
32+ run : |
33+ python -m pytest -v
Original file line number Diff line number Diff line change 1+ [pytest]
2+ # Где искать тесты
3+ testpaths = tests
4+ python_files = test_*.py
5+ python_classes = Test*
6+ python_functions = test_*
You can’t perform that action at this time.
0 commit comments