Run Raw-rs tests only on CI (#1776)

run raw-rs tests only on CI
This commit is contained in:
Elbert Ronnie 2024-06-11 13:56:54 +05:30 committed by GitHub
parent a9a4b5cd19
commit 52d2047ca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View File

@ -87,7 +87,7 @@ jobs:
- name: 🧪 Run Rust tests
run: |
mold -run cargo nextest run
mold -run cargo nextest run --all-features
# miri:
# runs-on: self-hosted
@ -97,7 +97,7 @@ jobs:
# - name: 🧪 Run Rust miri
# run: |
# mold -run cargo +nightly miri nextest run -j32
# mold -run cargo +nightly miri nextest run -j32 --all-features
cargo-deny:
runs-on: ubuntu-latest

View File

@ -12,6 +12,9 @@ homepage = "https://github.com/GraphiteEditor/Graphite/tree/master/libraries/raw
repository = "https://github.com/GraphiteEditor/Graphite/tree/master/libraries/raw-rs"
documentation = "https://docs.rs/raw-rs"
[features]
raw-rs-tests = []
[dependencies]
num_enum = "0.7.2"
thiserror = { workspace = true }

View File

@ -13,8 +13,8 @@ const TEST_FILES: [&str; 1] = ["ILCE-7M3-ARW2.3.5-blossoms.arw"];
const BASE_URL: &str = "https://static.graphite.rs/test-data/libraries/raw-rs/";
const BASE_PATH: &str = "./tests/images";
#[test]
fn test_images_matches_with_libraw() {
#[cfg_attr(feature = "raw-rs-tests", test)]
fn test_images_match_with_libraw() {
download_images();
let mut failed_tests = 0;