mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
chore(tests): merge back expensive tests to normal tests
This commit is contained in:
26
.github/workflows/optimizer-expensive-tests.yml
vendored
26
.github/workflows/optimizer-expensive-tests.yml
vendored
@@ -1,26 +0,0 @@
|
||||
name: Continuous integration - Extra tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, testci ]
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
jobs:
|
||||
check-concrete-optimizer-expensive-tests:
|
||||
runs-on: ubuntu-20.04
|
||||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: "Setup"
|
||||
uses: ./.github/workflows/setup
|
||||
with:
|
||||
ssh_private_key: ${{ secrets.CONCRETE_COMPILER_CI_SSH_PRIVATE }}
|
||||
|
||||
- name: Tests
|
||||
run: |
|
||||
cd v0-parameters
|
||||
cargo test --release --no-fail-fast --features=expensive_tests
|
||||
@@ -201,18 +201,8 @@ mod tests {
|
||||
use super::*;
|
||||
use concrete_optimizer::security::security_weights::SECURITY_WEIGHTS_TABLE;
|
||||
|
||||
#[cfg(not(feature = "expensive_tests"))]
|
||||
const ONLY_SOME_SECURITY_LEVELS: bool = true;
|
||||
|
||||
#[cfg(feature = "expensive_tests")]
|
||||
const ONLY_SOME_SECURITY_LEVELS: bool = false;
|
||||
|
||||
fn security_levels_to_test() -> Vec<u64> {
|
||||
if ONLY_SOME_SECURITY_LEVELS {
|
||||
vec![128]
|
||||
} else {
|
||||
SECURITY_WEIGHTS_TABLE.keys().copied().collect()
|
||||
}
|
||||
SECURITY_WEIGHTS_TABLE.keys().copied().collect()
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user