summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-07-03 12:06:59 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-07-03 15:04:31 +0200
commit820c3e30d6833cc02c991684c127fa1f7cbcf7d9 (patch)
treefb8e30ded1f1dab1c8cbbee73d5e489dd9b8a888
parent65a610c3bff143417e33429968314e641e95d516 (diff)
downloadqutebrowser-820c3e30d6833cc02c991684c127fa1f7cbcf7d9.tar.gz
qutebrowser-820c3e30d6833cc02c991684c127fa1f7cbcf7d9.zip
ci: Upload coverage via GitHub Actions
See #4976
-rw-r--r--.github/workflows/ci.yml11
-rw-r--r--.travis.yml16
2 files changed, 8 insertions, 19 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e5bb9638f..30b543d84 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -89,13 +89,12 @@ jobs:
- testenv: py38-pyqt514
os: ubuntu-20.04
python: 3.8
- ### PyQt 5.15 (Python 3.8)
- - testenv: py38-pyqt515
+ ### PyQt 5.15 (Python 3.8, with coverage)
+ - testenv: py38-pyqt515-cov
os: ubuntu-20.04
python: 3.8
### TODO: macOS
### TODO: Windows
- ### TODO: coverage
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v2
@@ -110,3 +109,9 @@ jobs:
env:
PYTEST_ADDOPTS: "--color=yes"
run: "bash scripts/dev/ci/run.sh ${{ matrix.testenv }}"
+ - name: Upload coverage
+ if: "endsWith(matrix.testenv, '-cov')"
+ uses: codecov/codecov-action@v1
+ with:
+ name: "${{ matrix.testenv }}"
+ fail_ci_if_error: true
diff --git a/.travis.yml b/.travis.yml
index e485c6d63..4b43eaff2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,19 +12,6 @@ matrix:
env: TESTENV=py35-pyqt57
dist: xenial
- ### PyQt 5.15 (Python 3.8, with coverage)
- - env: TESTENV=py38-pyqt515-cov
- addons:
- apt:
- packages:
- - libxkbcommon-x11-0
- - libxcb-icccm4
- - libxcb-image0
- - libxcb-keysyms1
- - libxcb-randr0
- - libxcb-render-util0
- - libxcb-xinerama0
-
### macOS Mojave (10.14)
- os: osx
env: TESTENV=py37-pyqt514 OSX=mojave
@@ -51,8 +38,5 @@ install:
script:
- bash scripts/dev/ci/run.sh "$TESTENV"
-after_success:
- - '[[ $TESTENV == *-cov ]] && codecov -e TESTENV -X gcov'
-
after_failure:
- bash scripts/dev/ci/travis_backtrace.sh