diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-04-14 14:12:35 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2023-04-21 13:30:45 +0530 |
commit | c0c9f755a40a51889e73275578cb49296de84e43 (patch) | |
tree | 94f9e6272b8cbe2faf6f8ee70231b7968ec59d87 /.github/workflows/macos.yml | |
parent | 5eb55075baa2883170a3d0cf3c0621aae56a1632 (diff) | |
download | meson-c0c9f755a40a51889e73275578cb49296de84e43.zip meson-c0c9f755a40a51889e73275578cb49296de84e43.tar.gz meson-c0c9f755a40a51889e73275578cb49296de84e43.tar.bz2 |
ci: Move to the codecov github action
The pypi package was suddenly removed. Not the most
confidence-inspiring deprecation/migration:
https://about.codecov.io/blog/message-regarding-the-pypi-package/
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r-- | .github/workflows/macos.yml | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 66e84be..9a25fa1 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -33,7 +33,7 @@ jobs: python-version: '3.x' - run: | python -m pip install --upgrade pip - python -m pip install pytest pytest-xdist pytest-subtests jsonschema coverage codecov + python -m pip install pytest pytest-xdist pytest-subtests jsonschema coverage - run: brew install pkg-config ninja llvm qt@5 - env: CPPFLAGS: "-I/usr/local/include" @@ -46,8 +46,17 @@ jobs: export PATH="$HOME/tools:/usr/local/opt/qt@5/bin:$PATH:$(brew --prefix llvm)/bin" export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH" ./tools/run_with_cov.py ./run_unittests.py + + - name: Aggregate coverage reports + run: ./ci/combine_cov.sh + - name: Upload coverage report - run: ./ci/upload_cov.sh "appleclang [unit tests]" + uses: codecov/codecov-action@v3 + with: + files: .coverage/coverage.xml + name: "appleclang [unit tests]" + fail_ci_if_error: true + verbose: true project-tests-appleclang: @@ -81,7 +90,7 @@ jobs: - run: | python3 -m pip install --upgrade setuptools python3 -m pip install --upgrade pip - python3 -m pip install cython coverage codecov + python3 -m pip install cython coverage - env: CPPFLAGS: "-I/usr/local/include" LDFLAGS: "-L/usr/local/lib" @@ -94,8 +103,17 @@ jobs: export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH" export XML_CATALOG_FILES="/usr/local/etc/xml/catalog" ./tools/run_with_cov.py ./run_project_tests.py --backend=ninja + + - name: Aggregate coverage reports + run: ./ci/combine_cov.sh + - name: Upload coverage report - run: ./ci/upload_cov.sh "appleclang [project tests; unity=${{ matrix.unity }}]" + uses: codecov/codecov-action@v3 + with: + files: .coverage/coverage.xml + name: "appleclang [project tests; unity=${{ matrix.unity }}]" + fail_ci_if_error: true + verbose: true Qt4macos: runs-on: macos-latest |