From 5a631d852b77cf3dca5f4c61b72c19234b911f38 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Tue, 19 Jan 2021 20:37:03 +0900 Subject: [PATCH 1/3] Actions: Update coveralls flag name --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 09846c94..f5a8f303 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -109,7 +109,7 @@ jobs: run: coveralls env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: ${{ matrix.test-name }} + COVERALLS_FLAG_NAME: ${{ matrix.py }}-${{ matrix.db }} COVERALLS_PARALLEL: true coveralls: From c0856794108d7a09ffffe2cdf85207ab68e05675 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Tue, 19 Jan 2021 20:49:40 +0900 Subject: [PATCH 2/3] fix 422 error https://github.com/TheKevJames/coveralls-python/issues/252 --- .github/workflows/test.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f5a8f303..d0031742 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -106,7 +106,7 @@ jobs: pytest -v --cov --cov-config .coveragerc tests/test_mariadb_auth.py - name: Report coverage - run: coveralls + run: coveralls --service=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_FLAG_NAME: ${{ matrix.py }}-${{ matrix.db }} @@ -116,11 +116,10 @@ jobs: name: Finish coveralls runs-on: ubuntu-20.04 needs: test - container: python:3-slim steps: - name: Finished run: | - pip3 install --upgrade coveralls - coveralls --finish + pip install --upgrade coveralls + coveralls --finish --service=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 053ad4855cba28f151eacd98ee57f705b7768d98 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Tue, 19 Jan 2021 22:08:16 +0900 Subject: [PATCH 3/3] Fix --- .github/workflows/test.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d0031742..26b3f9c9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -117,6 +117,9 @@ jobs: runs-on: ubuntu-20.04 needs: test steps: + - uses: actions/setup-python@v2 + with: + python-version: 3.9 - name: Finished run: | pip install --upgrade coveralls