diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f12ab33..cda78a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,7 +68,7 @@ jobs: chmod +x ./cc-test-reporter ./cc-test-reporter before-build - name: Run tests - run: coverage run ./setup.py test && coverage xml -i --include='chartmogul/*' + run: coverage run -m unittest && coverage xml -i --include='chartmogul/*' - name: Send Report to Code Climate env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} diff --git a/README.md b/README.md index 62ccf0d..e46fb87 100644 --- a/README.md +++ b/README.md @@ -406,7 +406,7 @@ To work on the library: * Write tests for your new features. Use `requests_mock` for HTTP mocking. * To run test install requirement-test `pip3 install -r requirements-test.txt` and run with `python -m unittest`: * `pip3 install coverage` - * `coverage run ./setup.py test` + * `coverage run -m unittest` * `coverage html --include='chartmogul/*'` * Find results in `htmlcov/index.html` * If all tests are passed, push to the branch (`git push origin my-new-feature`)