From 4afa4ae1a05f0c2eadb8d4107ae21da5d957c1ed Mon Sep 17 00:00:00 2001 From: Sergey Vilgelm Date: Sat, 8 Feb 2020 11:20:05 -0600 Subject: [PATCH 1/2] GitHub Actions coveralls for push request in main repo only Due to inability to use the COVERALLS_TOKEN secret for the PRs made from forks It's a temporary solution and will be replaced by Codecov when the tokenless upload is implemented: https://github.com/codecov/codecov-action/issues/29 --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b142cb80..db904b81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,7 @@ jobs: - name: Test with inv run: inv cover qa - name: Coveralls + if: github.repository == 'python-restx/flask-restx' && github.event == 'push' run: | pip install coveralls coveralls --rcfile=coverage.rc From 771f69ab11c9a0c74d8f22678f8382e7d97d80fe Mon Sep 17 00:00:00 2001 From: Sergey Vilgelm Date: Tue, 11 Feb 2020 07:10:51 -0600 Subject: [PATCH 2/2] Run coveralls on travis Temporary using Travis CI to run coveralls for PRs --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..990ff2c5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: python +python: "3.8" +if: type = pull_request +install: + - pip install ".[dev]" coveralls +script: + - inv cover +after_success: + - coveralls --rcfile=coverage.rc