From 83a9217c54d1b4821831e8fc29ed8db14919ee6d Mon Sep 17 00:00:00 2001 From: JP White Date: Sun, 28 Feb 2021 16:19:41 -0500 Subject: [PATCH] CI --- .github/workflows/python-package.yml | 6 ++++-- Makefile | 2 ++ requirements.txt | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 27bac20..253ada9 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -31,12 +31,12 @@ jobs: run: | make lint - name: Test with pytest - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run: | make test-coverage - name: Coveralls uses: coverallsapp/github-action@master + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} with: github-token: ${{ secrets.GITHUB_TOKEN }} parallel: true @@ -47,6 +47,8 @@ jobs: steps: - name: Coveralls Finished uses: coverallsapp/github-action@master + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} with: github-token: ${{ secrets.github_token }} parallel-finished: true \ No newline at end of file diff --git a/Makefile b/Makefile index 79d557f..54c296c 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,8 @@ test-debug: ## run tests with debugging enabled test-coverage: ## check code coverage quickly with the default Python coverage run --source gitinspector -m pytest coverage report -m + +test-coverage-report: test-coverage ## Report coverage to Coveralls coveralls release: dist ## package and upload a release diff --git a/requirements.txt b/requirements.txt index 6f48a81..ae8dfef 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,8 @@ chardet==4.0.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2 click==7.1.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' colorama==0.4.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' coverage==5.4 +coveralls==3.0.0 +docopt==0.6.2 docutils==0.16; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' flake8==3.8.4 idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'