diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..9d50004 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[run] +branch = True +source = pyperclip3 \ No newline at end of file diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 57e3fd4..58b4d71 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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