Skip to content

Commit

Permalink
fix codecov.yml location
Browse files Browse the repository at this point in the history
Change-Id: Ie45398c4b048d35fc54ba7f6e76e3525dfbfe61c
  • Loading branch information
oliverlee committed Dec 24, 2023
1 parent 623727e commit 31d14d3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 80 deletions.
13 changes: 13 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
coverage:
status:
project:
default:
target: auto
threshold: 0%
patch:
default:
target: auto
threshold: 0%

github_checks:
annotations: true
18 changes: 0 additions & 18 deletions .github/coverage.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,6 @@ on:
branches: [ "*" ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain: [gcc, clang]
feature: ['', asan, tsan, ubsan]

steps:
- uses: actions/checkout@v3

- uses: ./.github/actions/ci-env-setup
with:
bazel-cache-key: bazel-test-${{ matrix.toolchain }}-${{ matrix.feature }}

- run: |
bazel \
test \
--config=${{ matrix.toolchain }} \
--features=${{ matrix.feature }} \
//...
coverage:
runs-on: ubuntu-latest
steps:
Expand All @@ -48,43 +26,3 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./bazel-out/_coverage/_coverage_report.dat
fail_ci_if_error: true

build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flag:
- '--config=clang-format'
- '--config=clang-tidy'
- '--config=verbose-clang-tidy'
- '--compilation_mode=opt'
exclude:
- flag: ${{ github.event_name == 'pull_request' && '--config=verbose-clang-tidy' || 'dummy' }}

steps:
- uses: actions/checkout@v3

- uses: ./.github/actions/ci-env-setup
with:
bazel-cache-key: bazel-build-${{ matrix.flag }}

- run: |
bazel \
build \
${{ matrix.flag }} \
//...
buildifier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: ./.github/actions/ci-env-setup
with:
bazel-cache-key: bazel-buildifier

- run: |
bazel \
run \
//tools:buildifier.check
6 changes: 6 additions & 0 deletions src/default_printer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <ostream>
#include <string_view>
#include <type_traits>
#include <iostream>

namespace skytest {

Expand Down Expand Up @@ -132,6 +133,11 @@ class default_printer
os_ << "\n";
}

if (&os_ == &std::cerr) {
os_ << " uncovered branch\n";

Check warning on line 137 in src/default_printer.hpp

View check run for this annotation

Codecov / codecov/patch

src/default_printer.hpp#L137

Added line #L137 was not covered by tests
}

os_ << "test test test\n";
os_ << "\n";
}
template <class Relation>
Expand Down

0 comments on commit 31d14d3

Please sign in to comment.