Skip to content

Commit 381e6ab

Browse files
authored
Actions: Fix 422 error on Coveralls (PyMySQL#949)
* Actions: Update coveralls flag name * fix 422 error See TheKevJames/coveralls-python#252
1 parent 96d738a commit 381e6ab

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/test.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,23 @@ jobs:
106106
pytest -v --cov --cov-config .coveragerc tests/test_mariadb_auth.py
107107
108108
- name: Report coverage
109-
run: coveralls
109+
run: coveralls --service=github
110110
env:
111111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112-
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
112+
COVERALLS_FLAG_NAME: ${{ matrix.py }}-${{ matrix.db }}
113113
COVERALLS_PARALLEL: true
114114

115115
coveralls:
116116
name: Finish coveralls
117117
runs-on: ubuntu-20.04
118118
needs: test
119-
container: python:3-slim
120119
steps:
120+
- uses: actions/setup-python@v2
121+
with:
122+
python-version: 3.9
121123
- name: Finished
122124
run: |
123-
pip3 install --upgrade coveralls
124-
coveralls --finish
125+
pip install --upgrade coveralls
126+
coveralls --finish --service=github
125127
env:
126128
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)