File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Run Unit Tests
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ concurrency :
10+ group : ${{ github.head_ref || github.run_id }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ test :
15+
16+ strategy :
17+ matrix :
18+ os : [ubuntu-latest, windows-latest, macos-latest]
19+ version : ["3.9", "3.x"]
20+
21+ runs-on : ${{ matrix.os }}
22+
23+ steps :
24+ - uses : actions/checkout@v3
25+ - name : Set up Python version ${{ matrix.version }}
26+ uses : actions/setup-python@v4
27+ with :
28+ python-version : ${{ matrix.version }}
29+ - name : Install dependencies
30+ run : |
31+ python -m pip install --upgrade pip
32+ pip install -r requirements.txt
33+ - name : Test with pytest
34+ run : |
35+ pip install pytest pytest-cov
36+ pytest tests/ --cov=${{ github.event.repository.name }} --cov-report=html:htmlcov
You can’t perform that action at this time.
0 commit comments