Skip to content

[BUG] Fix Makefile test, clean, install, and release targets - #250

Open
M-Colley wants to merge 1 commit into
hyperactive-project:mainfrom
M-Colley:fix/issue-244-makefile
Open

M-Colley wants to merge 1 commit into
hyperactive-project:mainfrom
M-Colley:fix/issue-244-makefile

Conversation

@M-Colley

Copy link
Copy Markdown

Description

Fix six defects in the project Makefile covering target cleanup, redundant test prerequisites, trailing shell continuations, package installation extras, release build prerequisites, and loop iteration counts. Fixes #244.

Related Issues

Fixes #244

Type of Change

  • [BUG]: Bug fix (non-breaking change fixing an issue)
  • [ENH]: New feature (non-breaking change adding functionality)
  • [DOC]: Documentation changes
  • [MNT]: Maintenance

How was this solved?

  • Added clean-progress_board to the prerequisites of clean so temporary *.csv~ and *.lock~ files are removed during cleanup.
  • Removed duplicate test-local from test-extensive because test already depends on test-local.
  • Removed trailing ; \ continuations from test-pytest and test-src.
  • Changed install-no-extras-for-test to install . without extras, and added pytest to the test-no-extras workflow job in .github/workflows/test.yml so pytest remains available when running core tests without optional extras.
  • Added build as an explicit prerequisite of release before test-extensive and artifact upload.
  • Updated test-search_space loop condition from -le 100 to -lt 100 so the loop runs 100 iterations starting from i=0.
  • Added regression tests in tests/test_makefile.py covering all six Makefile target specifications.

Checklist

  • PR title includes appropriate tag: [BUG], [ENH], [DOC] or [MNT]
  • Linked to related issue (if applicable)
  • Code passes make check (lint, format, isort)
  • Tests added/updated for changes (if applicable)
  • Documentation updated (if applicable)

Testing

Ran python -m pytest tests/test_makefile.py and python -m unittest tests.test_makefile -v (6 passed), and verified ruff check, ruff format --check, and ruff check --select I on all changed files.

Additional Notes

None.

Fixes hyperactive-project#244

Signed-off-by: Mark Colley <39366189+M-Colley@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

[BUG] Fix Makefile test targets, cleanup behavior, and release artifact handling

1 participant