CI tests should skip some that are reliant on filesystem of user
Some checks failed
/ test (push) Failing after 6m2s

This commit is contained in:
Chris Cochrun 2026-02-16 10:25:03 -06:00
parent 6aa6f94e05
commit 475896f754
3 changed files with 4 additions and 15 deletions

View file

@ -6,7 +6,7 @@ jobs:
- run: nix-env --install nodejs
- name: checkout
uses: actions/checkout@v4
- run: nix --extra-experimental-features nix-command --extra-experimental-features flakes develop --command just test
- run: nix --extra-experimental-features nix-command --extra-experimental-features flakes develop --command just ci-test
# test:
# runs-on: rust-latest
# steps:

View file

@ -21,6 +21,8 @@ clean:
cargo clean
test:
cargo nextest run
ci-test:
cargo nextest run -- --skip test_db_and_model --skip test_update --skip test_song_slide_speed --skip test_song_to_slide --skip test_song_from_db
bench:
export NEXTEST_EXPERIMENTAL_BENCHMARKS=1
cargo nextest bench

View file

@ -1387,11 +1387,7 @@ You saved my soul"
}
async fn add_db() -> Result<SqlitePool> {
// let mut data = dirs::data_local_dir().unwrap();
// data.push("lumina");
// data.push("library-db.sqlite3");
let mut db_url = String::from("sqlite://./test.db");
// db_url.push_str(data.to_str().unwrap());
let db_url = String::from("sqlite://./test.db");
SqlitePool::connect(&db_url).await.into_diagnostic()
}
@ -1488,15 +1484,6 @@ You saved my soul"
}
}
fn test_lisp_song() -> Value {
let lisp = read_to_string("./test_song.lisp").expect("oops");
let lisp_value = crisp::reader::read(&lisp);
match lisp_value {
Value::List(v) => v.first().unwrap().clone(),
_ => Value::Nil,
}
}
#[test]
fn test_verse_names_and_adding() {
let mut song = Song::default();