mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add Rust to CI
This commit is contained in:
parent
b4edf2ce50
commit
23fe0be286
3 changed files with 8 additions and 0 deletions
|
|
@ -306,6 +306,8 @@ def test_additional_rust_cli_dependencies_installed(
|
|||
binaries = os.listdir(prefix.path(
|
||||
helpers.environment_dir(rust.ENVIRONMENT_DIR, 'default'), 'bin',
|
||||
))
|
||||
# normalize for windows
|
||||
binaries = [os.path.splitext(binary)[0] for binary in binaries]
|
||||
assert 'shellharden' in binaries
|
||||
|
||||
|
||||
|
|
@ -324,6 +326,8 @@ def test_additional_rust_lib_dependencies_installed(
|
|||
binaries = os.listdir(prefix.path(
|
||||
helpers.environment_dir(rust.ENVIRONMENT_DIR, 'default'), 'bin',
|
||||
))
|
||||
# normalize for windows
|
||||
binaries = [os.path.splitext(binary)[0] for binary in binaries]
|
||||
assert 'rust-hello-world' in binaries
|
||||
assert 'shellharden' not in binaries
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue