Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tox configuration to the repository #20

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Conversation

wolsen
Copy link
Collaborator

@wolsen wolsen commented Feb 28, 2024

Adds the tox configuration to the repository to run unit tests, linting, etc and ensure consistency.

This branch additionally contains a bug fix for the recently merged i40e stuff.

Add a tox.ini file for running a variety of code quality tests
including linting, formatting using black, and running/passing
unit tests.

This also includes a refactor of the unit tests to move them
into a tests/unit directory for future addition of additional
testing such as integration testing, functional testing, etc.

The run_tests script is dropped in favor of using the tox tool
set.

Signed-off-by: Billy Olsen <billy.olsen@canonical.com>
The disable_i40e_lldp function should not issue a system exit
call when no nics are found, instead it should simply return
from the function.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Add github ci workflow to run lint, static analysis and unit
tests on each pull request.

Signed-off-by: Billy Olsen <billy.olsen@canonical.com>
@javacruft javacruft merged commit bd16543 into canonical:main Feb 28, 2024
This was referenced Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants