-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (28 loc) · 851 Bytes
/
coverage.yml
File metadata and controls
35 lines (28 loc) · 851 Bytes
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
33
34
35
name: Coverage
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install pytest pytest-cov coveralls
pip install pytest pytest-mock numpy>=2.1.1 pillow>=10.4.0 opencv-python>=4.10.0.84 scipy>=1.14.1 typing-extensions>=4.10.0 tqdm>=4.67.1
- name: Run tests with coverage
run: |
pytest --cov=tests
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}