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

Fix testing and linting #230

Merged
merged 21 commits into from
Mar 30, 2024
Merged

Fix testing and linting #230

merged 21 commits into from
Mar 30, 2024

Conversation

NeffIsBack
Copy link
Contributor

@NeffIsBack NeffIsBack commented Mar 27, 2024

Now we build with every python version which we support on approval and lint on every push (pull_request was redundant)
Also the test runner will now test if the installation on the platform is able to load every protocol and module:
image

Note: As I tested a bit this probably should get squashed merged

@NeffIsBack NeffIsBack added the documentation Improvements or additions to documentation label Mar 27, 2024
@Marshall-Hallenbeck
Copy link
Collaborator

Tests are failing because the few tests I created in tests/test_smb_database.py are quite old. Might want to just disable running those tests for now, until we can actually get a proper (non-e2e) functional testing.

@NeffIsBack
Copy link
Contributor Author

Ah yeah i just wanted to have something that checks that installations are working on every platform and with every supported python version. Maybe just disable the poetry run pytest for now? If we want to test installations i will add caching as well

@Marshall-Hallenbeck
Copy link
Collaborator

Yeah, I would get rid of that part, and just do the install. Maybe run the binary with -h after, to make sure stuff loads?

@NeffIsBack
Copy link
Contributor Author

Sounds good!

- name: Install libraries with dev group
run: |
poetry install --with dev
- name: Run the e2e test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't the e2e tests, that's ran directly via the e2e_tests.py file

@NeffIsBack NeffIsBack merged commit 4b35ab7 into main Mar 30, 2024
1 check passed
@NeffIsBack NeffIsBack deleted the neff-cli branch March 30, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants