mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-04 05:03:14 +03:00
Use Codecov's GitHub action
This commit is contained in:
parent
f90a21965a
commit
1ff3a501ef
|
@ -6,6 +6,4 @@ codecov:
|
||||||
# https://docs.codecov.io/v4.3.6/docs/comparing-commits
|
# https://docs.codecov.io/v4.3.6/docs/comparing-commits
|
||||||
allow_coverage_offsets: true
|
allow_coverage_offsets: true
|
||||||
|
|
||||||
token: 6dafc396-e7f5-4221-a38a-8b07a49fbdae
|
|
||||||
|
|
||||||
comment: off
|
comment: off
|
||||||
|
|
10
.github/workflows/test-windows.yml
vendored
10
.github/workflows/test-windows.yml
vendored
|
@ -55,10 +55,9 @@ jobs:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
architecture: ${{ matrix.architecture }}
|
architecture: ${{ matrix.architecture }}
|
||||||
|
|
||||||
- name: pip install wheel pytest pytest-cov codecov
|
- name: pip install wheel pytest pytest-cov
|
||||||
run: |
|
run: |
|
||||||
"%pythonLocation%\python.exe" -m pip install wheel pytest pytest-cov
|
"%pythonLocation%\python.exe" -m pip install wheel pytest pytest-cov
|
||||||
pip install codecov
|
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Fetch dependencies
|
- name: Fetch dependencies
|
||||||
|
@ -357,8 +356,11 @@ jobs:
|
||||||
path: Tests/errors
|
path: Tests/errors
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
run: 'codecov --file "%GITHUB_WORKSPACE%\coverage.xml" --name "%pythonLocation%"'
|
if: success()
|
||||||
shell: cmd
|
uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
name: ${{ runner.os }} Python ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Build wheel
|
- name: Build wheel
|
||||||
id: wheel
|
id: wheel
|
||||||
|
|
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -71,5 +71,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
.travis/after_success.sh
|
.travis/after_success.sh
|
||||||
env:
|
env:
|
||||||
|
MATRIX_OS: ${{ matrix.os }}
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
|
|
||||||
|
- name: Upload coverage
|
||||||
|
if: success()
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# gather the coverage data
|
# gather the coverage data
|
||||||
sudo apt-get -qq install lcov
|
if [[ "$MATRIX_OS" == "macOS-latest" ]]; then
|
||||||
|
brew install lcov
|
||||||
|
else
|
||||||
|
sudo apt-get -qq install lcov
|
||||||
|
fi
|
||||||
|
|
||||||
lcov --capture --directory . -b . --output-file coverage.info
|
lcov --capture --directory . -b . --output-file coverage.info
|
||||||
# filter to remove system headers
|
# filter to remove system headers
|
||||||
lcov --remove coverage.info '/usr/*' -o coverage.filtered.info
|
lcov --remove coverage.info '/usr/*' -o coverage.filtered.info
|
||||||
|
@ -13,7 +18,9 @@ coverage report
|
||||||
pip install codecov
|
pip install codecov
|
||||||
pip install coveralls-merge
|
pip install coveralls-merge
|
||||||
coveralls-merge coverage.c.json
|
coveralls-merge coverage.c.json
|
||||||
codecov
|
if [[ $TRAVIS ]]; then
|
||||||
|
codecov
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$TRAVIS_PYTHON_VERSION" == "3.7" ] && [ "$DOCKER" == "" ]; then
|
if [ "$TRAVIS_PYTHON_VERSION" == "3.7" ] && [ "$DOCKER" == "" ]; then
|
||||||
# Coverage and quality reports on just the latest diff.
|
# Coverage and quality reports on just the latest diff.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user