Skip to content

dont exclude tests from build, fix windows path refs#267

Merged
aerispaha merged 7 commits into
masterfrom
bugfix/missing-tests
May 22, 2026
Merged

dont exclude tests from build, fix windows path refs#267
aerispaha merged 7 commits into
masterfrom
bugfix/missing-tests

Conversation

@aerispaha

@aerispaha aerispaha commented May 22, 2026

Copy link
Copy Markdown
Member

This fixes an issue where the pychrs.tests module was not included in the build. This was a problem because we reference the test module in some examples.

While making this fix, I also noticed that tests were actually failing in Windows even though GitHub Actions wasn't flagging them as failures in Windows because previously we did the tests and doctests in the same command. now they run in distinct steps, so windows failures will be raised in the future.

I fixed the issues in windows by making a few path references OS-dynamic and configured matplotlib properly for headless environments in test_graphics.

@aerispaha aerispaha changed the title dont exclude tests from build dont exclude tests from build, fix windows path refs May 22, 2026
Comment thread swmmio/defs/config.py

# path to the Python executable used to run your version of Python
PYTHON_EXE_PATH = "python"#os.path.join(os.__file__.split("lib/")[0],"bin","python")
PYTHON_EXE_PATH = sys.executable

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this ensures we find the right python executable/binary in whatever OS we're in.

@aerispaha aerispaha merged commit b88b0df into master May 22, 2026
17 checks passed
@aerispaha aerispaha deleted the bugfix/missing-tests branch May 22, 2026 16:30
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.

1 participant