diff --git a/.github/workflows/aws_tfhe_fast_tests.yml b/.github/workflows/aws_tfhe_fast_tests.yml index c014e25564..e1164822d1 100644 --- a/.github/workflows/aws_tfhe_fast_tests.yml +++ b/.github/workflows/aws_tfhe_fast_tests.yml @@ -26,6 +26,7 @@ jobs: outputs: csprng_test: ${{ env.IS_PULL_REQUEST == 'false' || steps.changed-files.outputs.csprng_any_changed }} zk_pok_test: ${{ env.IS_PULL_REQUEST == 'false' || steps.changed-files.outputs.zk_pok_any_changed }} + versionable_test: ${{ env.IS_PULL_REQUEST == 'false' || steps.changed-files.outputs.versionable_any_changed }} core_crypto_test: ${{ env.IS_PULL_REQUEST == 'false' || steps.changed-files.outputs.core_crypto_any_changed || steps.changed-files.outputs.dependencies_any_changed }} @@ -64,10 +65,15 @@ jobs: - tfhe/Cargo.toml - concrete-csprng/** - tfhe-zk-pok/** + - utils/tfhe-versionable/** + - utils/tfhe-versionable-derive/** csprng: - concrete-csprng/** zk_pok: - tfhe-zk-pok/** + versionable: + - utils/tfhe-versionable/** + - utils/tfhe-versionable-derive/** core_crypto: - tfhe/src/core_crypto/** boolean: @@ -103,6 +109,7 @@ jobs: if: ( steps.changed-files.outputs.dependencies_any_changed == 'true' || steps.changed-files.outputs.csprng_any_changed == 'true' || steps.changed-files.outputs.zk_pok_any_changed == 'true' || + steps.changed-files.outputs.versionable_any_changed == 'true' || steps.changed-files.outputs.core_crypto_any_changed == 'true' || steps.changed-files.outputs.boolean_any_changed == 'true' || steps.changed-files.outputs.shortint_any_changed == 'true' || @@ -167,6 +174,11 @@ jobs: run: | make test_zk_pok + - name: Run tfhe-versionable tests + if: needs.should-run.outputs.versionable_test == 'true' + run: | + make test_versionable + - name: Run core tests if: needs.should-run.outputs.core_crypto_test == 'true' run: | diff --git a/Makefile b/Makefile index 0698149f81..b69d274e0b 100644 --- a/Makefile +++ b/Makefile @@ -744,7 +744,7 @@ test_zk_pok: install_rs_build_toolchain .PHONY: test_versionable # Run tests for tfhe-versionable subcrate test_versionable: install_rs_build_toolchain RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --profile $(CARGO_PROFILE) \ - -p tfhe-versionable + --all-targets -p tfhe-versionable # The backward compat data repo holds historical binary data but also rust code to generate and load them. # Here we use the "patch" functionality of Cargo to make sure the repo used for the data is the same as the one used for the code.