Skip to content

fix: pytest usage in CI #256

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

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Conversation

kyluca
Copy link
Contributor

@kyluca kyluca commented Oct 3, 2024

Fixes #255

This should fix the error by not invoking the tests via setup.py, instead using pytest directly as per their docs.

I've also made two small cleanups while in the area:

  1. Use the command python3 instead of python for consistency within the rest of the test.yml file.
  2. Fix a pytest warning within the test_get_commands test (see screenshots for before/after).

Before:
screenshot_from_2024_10_03_10_01_16

After:
screenshot_from_2024_10_03_10_01_38

This should be enough to get the GHA builds green again on main

Copy link
Member

@spageektti spageektti left a comment

Choose a reason for hiding this comment

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

Hi. Thanks for your contribution!

Copy link
Member

@kbdharun kbdharun left a comment

Choose a reason for hiding this comment

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

LGTM, welcome to tldr and thanks for your contribution.

@kbdharun kbdharun changed the title fix: Fix pytest usage fix: pytest usage in CI Oct 4, 2024
@kbdharun kbdharun merged commit 784225e into tldr-pages:main Oct 4, 2024
8 checks passed
@kyluca
Copy link
Contributor Author

kyluca commented Oct 4, 2024

No worries, thanks for welcoming my PRs. I've used https://tldr.sh/ a bunch in the past, so more than happy to give back even in such a small way 😄

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.

Tests currently failing on setuptools>72
5 participants