Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

bump to v25.0.0-rc.9 #31

bump to v25.0.0-rc.9

bump to v25.0.0-rc.9 #31

Workflow file for this run

name: Coverage
on:
push:
branches:
- 'develop'
jobs:
check-src:
runs-on: ubuntu-latest
name: check if src files changed
outputs:
status: ${{ steps.changed-files.outputs.modified_files }}
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@v42
id: changed-files
with:
files: |
.github/workflows/coverage.yml
.github/actions/setup-build/action.yml
.github/workflows/build.yml
./**/*.comp
./**/*.rs
./*.toml
coverage:
needs: check-src
if: needs.check-src.outputs.status
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Setup
if: needs.check-src.outputs.status
uses: ./.github/actions/setup-build
with:
os: ubuntu-latest
shaderc: false
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Rust cache
if: needs.check-src.outputs.status
uses: swatinem/rust-cache@v2
- name: Generate code coverage
run: |
cargo llvm-cov --lib --features "python plotters" --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true