We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 958bb24 commit b341061Copy full SHA for b341061
.github/workflows/unit-test.yaml
@@ -19,13 +19,19 @@ jobs:
19
- name: Set up Python
20
uses: actions/setup-python@v5
21
with:
22
- python-version: '3.10'
+ python-version: '3.12'
23
24
- name: Install dependencies
25
run: |
26
python -m pip install --upgrade pip
27
- pip install -r requirements.txt
+ pip install pytest pytest-cov
28
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29
- - name: Run Unit Tests
30
+ - name: Test with pytest
31
- python -m unittest discover -s tests
32
+ pytest --cov-branch --cov-report=xml tests/
33
+
34
+ - name: Upload coverage reports to Codecov
35
+ uses: codecov/codecov-action@v5
36
+ with:
37
+ token: ${{ secrets.CODECOV_TOKEN }}
0 commit comments