8000 Use Codecov instead of coveralls. by methane · Pull Request #1113 · PyMySQL/PyMySQL · GitHub
[go: up one dir, main page]

Skip to content

Use Codecov instead of coveralls. #1113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2023
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
0