Skip to content

Commit ca167a5

Browse files
committed
fix CI failures
1 parent 30b6037 commit ca167a5

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
runs-on: ubuntu-latest
5959
steps:
6060
- uses: actions/checkout@v4
61+
with:
62+
lfs: true
6163

6264
- run: rustup toolchain install stable --profile minimal --no-self-update
6365
- uses: Swatinem/rust-cache@v2

core/src/parsers/pyreport/chunks.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ use serde::{de, Deserialize};
4646
use super::report_json::ParsedReportJson;
4747
use super::utils;
4848
use crate::error::CodecovError;
49+
#[cfg(doc)]
50+
use crate::report::models;
4951
use crate::report::pyreport::types::{
5052
self, CoverageType, MissingBranch, Partial, PyreportCoverage, ReportLine,
5153
};

core/src/parsers/pyreport/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use std::fs::File;
33
use memmap2::Mmap;
44

55
use crate::error::Result;
6+
#[cfg(doc)]
7+
use crate::report::models;
68
use crate::report::SqliteReportBuilder;
79

810
pub mod chunks;
@@ -18,14 +20,14 @@ mod utils;
1820
/// - Chunks file, which describes line-by-line coverage data for each file
1921
///
2022
/// The parser for the report JSON inserts a
21-
/// [`crate::report::models::SourceFile`] for each file
22-
/// and a [`crate::report::models::Context`] for each session. It returns two
23+
/// [`SourceFile`](models::SourceFile) for each file
24+
/// and a [`Context`](models::Context) for each session. It returns two
2325
/// hashmaps: one which maps each file's "chunk index" to the database PK for
24-
/// the `SourceFile` that was inserted for it, and one which maps each session's
26+
/// the [`SourceFile`](models::SourceFile) that was inserted for it, and one which maps each session's
2527
/// "session_id" to the database PK for the `Context` that was inserted for it.
2628
///
2729
/// The parser for the chunks file inserts a
28-
/// [`crate::report::models::CoverageSample`] (and possibly other records) for
30+
/// [`CoverageSample`](models::CoverageSample) (and possibly other records) for
2931
/// each coverage measurement contained in the chunks file. It uses the
3032
/// results of the report JSON parser to figure out the appropriate FKs to
3133
/// associate a measurement with its `SourceFile` and `Context`(s).

0 commit comments

Comments
 (0)