From e7259120f08ce6cfd8b83053105b0a9e5b37e405 Mon Sep 17 00:00:00 2001 From: JP White Date: Sat, 27 Feb 2021 22:59:59 -0500 Subject: [PATCH] Ci Setup --- .coveragerc | 2 ++ .coveralls.yml | 0 .github/workflows/python-package.yml | 14 ++++++++++++++ pyproject.toml | 2 ++ 4 files changed, 18 insertions(+) create mode 100644 .coveragerc create mode 100644 .coveralls.yml create mode 100644 pyproject.toml diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..ce2f455 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +relative_files = True \ No newline at end of file diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index eb9a54b..3331350 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -33,3 +33,17 @@ jobs: - name: Test with pytest run: | make test-coverage + - name: Report coverage to Coveralls + uses: AndreMiras/coveralls-python-action@develop + with: + parallel: true + flag-name: Unit Test + + coveralls_finish: + needs: test + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: AndreMiras/coveralls-python-action@develop + with: + parallel-finished: true \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7349e8f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.coverage.run] +relative_files = True \ No newline at end of file