Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Jan 20, 2021
1 parent 22a126d commit 15e5e47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
branch = True
source = pyperclip3
6 changes: 4 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
architecture: 'x64'

- name: install
run: python -m pip install --upgrade . && python -m pip install pytest
run: python -m pip install --upgrade . && python -m pip install pytest coverage coveralls

- name: run tests
run: python3.8 -m pytest -v
env: # Or as an environment variable
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: coverage run -m pytest -v && coveralls

0 comments on commit 15e5e47

Please sign in to comment.