c2pa-rs

A fork of https://github.com/contentauth/c2pa-rs/
git clone git://archive.git.mtrnord.blog/mtrnords-photography-manager/c2pa-rs.git
Log | Files | Refs | README

commit 0769dfb8f78501dce864a2bb248c476198d2189d
parent 1a2711a3adaa648c2a595b1d6a1885ee4f9f40d5
Author: Ray Murillo <mail@raymurillo.com>
Date:   Thu, 25 Apr 2024 14:53:45 -0700

Use cargo test in CI (#459)

* Use cargo test in CI

* Add --all-features

---------

Co-authored-by: Ray Murillo <murillo@adobe.com>
Diffstat:
M.github/workflows/ci.yml | 22+++-------------------
1 file changed, 3 insertions(+), 19 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: - cron: "0 18 * * 1,4,6" # 1800 UTC every Monday, Thursday, Saturday jobs: - tests: + tests-cargo: name: Unit tests runs-on: ${{ matrix.os }} @@ -17,11 +17,6 @@ jobs: matrix: os: [windows-latest, macos-latest, ubuntu-latest] rust_version: [stable, 1.73.0] - # exclude: - # - os: windows-latest - # rust_version: stable - # # Disable latest Windows version due to build instability. - # # See https://github.com/rust-lang/cargo/issues/12979. steps: - name: Checkout repository @@ -31,23 +26,12 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust_version }} - components: llvm-tools-preview - name: Cache Rust dependencies uses: Swatinem/rust-cache@v2 - - name: Install cargo-llvm-cov - uses: taiki-e/install-action@cargo-llvm-cov - - - name: Generate code coverage - run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info - - - name: Upload code coverage results - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - fail_ci_if_error: true - verbose: true + - name: Run unit tests + run: cargo test --all-features --verbose tests-cross: name: Unit tests