Skip to content

Commit

Permalink
Add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarSamirz committed Sep 10, 2024
1 parent 90cb9ad commit a60a7b4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 26 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 pillow opencv-python scipy
- name: Run tests with coverage
run: |
pytest --cov=your_package
- name: Upload coverage to Coveralls
run: coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

0 comments on commit a60a7b4

Please sign in to comment.