Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 3 additions & 28 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
- 3306:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
options: "--name=mysqld"
volumes:
- /run/mysqld:/run/mysqld
Expand Down Expand Up @@ -96,32 +97,6 @@ jobs:
docker cp mysqld:/var/lib/mysql/client-cert.pem "${HOME}"
pytest -v --cov --cov-config .coveragerc tests/test_auth.py;

- name: Report coverage
- name: Upload coverage reports to Codecov
if: github.repository == 'PyMySQL/PyMySQL'
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.py }}-${{ matrix.db }}
COVERALLS_PARALLEL: true

coveralls:
if: github.repository == 'PyMySQL/PyMySQL'
name: Finish coveralls
runs-on: ubuntu-latest
needs: test
steps:
- name: requirements.
run: |
echo coveralls > requirements.txt

- uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip'

- name: Finished
run: |
pip install --upgrade coveralls
coveralls --finish --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: codecov/codecov-action@v3