This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
Update translations #144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage analysis | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
jobs: | |
coverage: | |
container: | |
image: fedora:latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v3 | |
- name: Install build environment | |
run: dnf --assumeyes install dnf-plugins-core | |
- name: Install build and test dependencies | |
run: | | |
dnf --assumeyes builddep --spec retrace-server.spec | |
# For the pyfaf imports. | |
dnf --assumeyes copr enable @abrt/faf-el8-devel | |
dnf --assumeyes install faf python3-pytest-cov | |
- name: Build the project | |
run: | | |
meson setup build -Dcoverage=true | |
ninja -C build -v | |
- name: Run tests and generate coverage report | |
run: | | |
meson test -C build -v | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: ./build | |
fail_ci_if_error: true | |
flags: unittests | |
root_dir: . | |
verbose: true |