Skip to content

Commit

Permalink
ci: Test for unused cargo dependencies
Browse files Browse the repository at this point in the history
From: Jonathan Woollett-Light <[email protected]>

Adds test for unused cargo dependencies.

Signed-off-by: Jonathan Woollett-Light <[email protected]>
Co-authored-by: Patrick Roy <[email protected]>
Signed-off-by: Patrick Roy <[email protected]>
  • Loading branch information
Jonathan Woollett-Light and roypat committed Dec 16, 2024
1 parent a8a240b commit a678ecc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/integration_tests/build/test_dependencies.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""Enforces controls over dependencies."""

from host_tools.cargo_build import cargo


def test_unused_dependencies():
"""
Test that there are no unused dependencies.
"""
cargo("udeps", "--all", nightly=True)

0 comments on commit a678ecc

Please sign in to comment.