Skip to content

Add unit testing to github actions#239

Closed
timvink wants to merge 1 commit intofralau:masterfrom
timvink:add_gh_actions
Closed

Add unit testing to github actions#239
timvink wants to merge 1 commit intofralau:masterfrom
timvink:add_gh_actions

Conversation

@timvink
Copy link
Copy Markdown
Contributor

@timvink timvink commented Sep 13, 2024

This should get you started with unit testing. You can even schedule these to run every week (see https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/blob/master/.github/workflows/scheduled_unittests.yml) so you are aware of anything breaking due to downstream updates

Copy link
Copy Markdown
Owner

@fralau fralau left a comment

Choose a reason for hiding this comment

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

What is the difference between conftest.pyand test_builds.py ?

@timvink
Copy link
Copy Markdown
Contributor Author

timvink commented Sep 15, 2024

The conftest.py file serves as a means of providing fixtures for an entire directory.

https://docs.pytest.org/en/stable/reference/fixtures.html#conftest-py-sharing-fixtures-across-multiple-files

But didn't use it in this PR

@timvink timvink closed this Oct 2, 2024
@fralau fralau added the keep in mind Interesting idea, keep in mind for the future label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

keep in mind Interesting idea, keep in mind for the future

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants