Skip to content

Commit

Permalink
Bump codecov/codecov-action from 3 to 4 (#34)
Browse files Browse the repository at this point in the history
* Bump codecov/codecov-action from 3 to 4

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v3...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update tests.yml

* Update tests.yml

* Update tests.yml

* Update tests.yml

* Update tests.yml

* Update tests.yml

* Update tests.yml

* Update codecov.yml

* handle_missing_conditons: true

* Update codecov.yml

* drop llvm codecov

* reduce seq

* reduce cpp17

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam Lugowski <[email protected]>
  • Loading branch information
dependabot[bot] and alugowski authored Jun 3, 2024
1 parent 2631bac commit 26d95b9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ jobs:
# oldest LLVM that the install-llvm-action action is able to install
description: "LLVM 5"
llvm-version: "5"
#gcov_executable: "llvm-cov gcov"

- os: ubuntu-22.04
# select libc++ as libstdc++ appears to be the default
description: "LLVM 16 libc++"
llvm-version: "16"
cmake-flags: '-DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_EXE_LINKER_FLAGS="-lc++abi"'
#gcov_executable: "llvm-cov gcov"

- os: ubuntu-20.04
description: "GCC 7"
Expand All @@ -32,6 +34,7 @@ jobs:
- os: ubuntu-20.04
description: "GCC 9"
gcc-version: "9"
#gcov_executable: "gcov"

- os: ubuntu-latest
description: "GCC 13"
Expand All @@ -45,6 +48,7 @@ jobs:

- os: ubuntu-latest
# default GCC, which has gcov
gcov_executable: "gcov"

- os: macos-latest
# uses Apple Clang
Expand Down Expand Up @@ -117,6 +121,13 @@ jobs:
echo "Supplement Test:"
./supplement_test || ./Debug/supplement_test.exe || node supplement_test
shell: bash

- name: Create code coverage report (gcov)
if: matrix.gcov_executable != ''
working-directory: ./build/tests
run: |
pip install gcovr
gcovr --delete --root ../../ --print-summary --xml coverage.xml . --gcov-executable '${{ matrix.gcov_executable }}' --merge-mode-functions=separate --gcov-ignore-parse-errors=negative_hits.warn_once_per_file
- name: Benchmark
# Earliest GCC with all benchmarked methods is 9
Expand Down Expand Up @@ -145,8 +156,9 @@ jobs:
shell: bash

- name: Upload Coverage to Codecov
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
uses: codecov/codecov-action@v3
if: matrix.gcov_executable != ''
uses: codecov/codecov-action@v4
with:
gcov: true
gcov_include: include/*
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ parsers:
branch_detection:
conditional: no
loop: no
cobertura:
partials_as_hits: true
ignore:
- "tests"
- "benchmark"
Expand Down
6 changes: 2 additions & 4 deletions tests/poolstl_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,23 +578,21 @@ TEST_CASE("exclusive_scan", "[alg][algorithm]") {
}
#endif

#if POOLSTL_HAVE_CXX17_LIB
TEST_CASE("reduce", "[alg][numeric]") {
for (auto num_threads : test_thread_counts) {
ttp::task_thread_pool pool(num_threads);

for (auto num_iters : test_arr_sizes) {
auto v = iota_vector(num_iters);

#if POOLSTL_HAVE_CXX17_LIB
auto seq = std::reduce(poolstl::par_if(false), v.cbegin(), v.cend());
#else
auto seq = poolstl::internal::cpp17::reduce(v.cbegin(), v.cend());
#endif
auto par = std::reduce(poolstl::par.on(pool), v.cbegin(), v.cend());
REQUIRE(seq == par);
}
}
}
#endif

#if POOLSTL_HAVE_CXX17_LIB
TEST_CASE("transform_reduce_1", "[alg][numeric]") {
Expand Down

0 comments on commit 26d95b9

Please sign in to comment.