Skip to content

Commit

Permalink
ci: Test for unused dependencies
Browse files Browse the repository at this point in the history
Adds a test for unused cargo dependencies.

Signed-off-by: Jonathan Woollett-Light <[email protected]>
  • Loading branch information
Jonathan Woollett-Light committed Sep 20, 2023
1 parent 3156667 commit 03cca76
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/integration_tests/build/test_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import pytest

from framework import utils
from host_tools import proc
from host_tools.cargo_build import cargo

Expand All @@ -25,3 +26,13 @@ def test_licenses():
)

cargo("deny", f"--manifest-path {toml_file} check licenses bans")


@pytest.mark.timeout(600)
def test_unused_dependencies():
"""
Test that there are no unused dependencies.
"""
utils.run_cmd("cargo install cargo-udeps")

utils.run_cmd("cargo +nightly udeps")

0 comments on commit 03cca76

Please sign in to comment.