-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.yaml
More file actions
32 lines (32 loc) · 1.03 KB
/
ci.yaml
File metadata and controls
32 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
jobs:
unit-test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
# pytest --cov --junitxml=junit.xml
export CODECOV_TOKEN=c7609124-b53c-4019-a893-cec9f98cfe97
pytest --cov --junitxml=junit.xml -o junit_family=legacy
Copy and paste the codecov/test-results-action here
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# - name: Upload test results to Codecov
# if: ${{ !cancelled() }}
# uses: codecov/test-results-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}