Skip to content

Instantly share code, notes, and snippets.

@danielgran
Created November 23, 2021 05:06
Show Gist options
  • Save danielgran/68551a59bbe4109b960ad64074491383 to your computer and use it in GitHub Desktop.
Save danielgran/68551a59bbe4109b960ad64074491383 to your computer and use it in GitHub Desktop.
unittest add modules for GitHub action
# put this into your ./test/__init__.py
testdir = os.path.dirname(__file__)
srcdir = '../<your_project_name>' # without <>, remove that comment
sys.path.insert(0, os.path.abspath(os.path.join(testdir, srcdir)))
@danielgran
Copy link
Author

gold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment