fix: upgrade deprecated GitHub Actions and remove unwrap

- actions/upload-artifact v3→v4 (v3 deprecated, blocks all CI jobs)
- actions/setup-python v4→v5
- actions/download-artifact v3→v4
- github/codeql-action/upload-sarif v2→v3
- codecov/codecov-action v3→v4
- peaceiris/actions-gh-pages v3→v4
- actions/create-release v1→softprops/action-gh-release v2
- Gate Slack notifications on webhook secret presence
- Fix k8s compliance check to skip when k8s/ dir missing
- Replace unwrap() with match in info_nce_loss_mined

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
ruv
2026-03-01 01:38:51 -05:00
parent 0826438e0e
commit aa1059d9e2
3 changed files with 43 additions and 39 deletions

View File

@@ -859,7 +859,10 @@ pub fn info_nce_loss_mined(
return info_nce_loss(embeddings_a, embeddings_b, temperature);
}
let miner = miner.unwrap();
let miner = match miner {
Some(m) => m,
None => return info_nce_loss(embeddings_a, embeddings_b, temperature),
};
// Build similarity matrix for mining
let mut sim_matrix = vec![vec![0.0f32; n]; n];