File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Run Unit Test via Pytest
2+
3+ on : [ push ]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ python-version : [ "3.13" ]
11+
12+ steps :
13+ - uses : actions/checkout@v3
14+ - name : Set up Python ${{ matrix.python-version }}
15+ uses : actions/setup-python@v4
16+ with :
17+ python-version : ${{ matrix.python-version }}
18+ - name : Install dependencies
19+ run : |
20+ python -m pip install --upgrade pip
21+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
22+ - name : Lint with Ruff
23+ run : |
24+ pip install ruff
25+ ruff --format=github --target-version=py313 .
26+ continue-on-error : true
27+ - name : Test with pytest
28+ run : |
29+ pytest test_app_cicd.py
30+ - name : Generate Coverage Report
31+ run : |
32+ coverage report -m
You can’t perform that action at this time.
0 commit comments