Skip to content

Conversation

@bobleesj
Copy link
Contributor

@bobleesj bobleesj commented Jun 25, 2025

What problem does this PR address?

Closes #42 - add unit test for generating meta.yaml
Closes #44 - add test-on-pr CI

Wrote a simple test for running cookiecutter.

What should the reviewer(s) do?

Please review the unit test.

  • This PR introduces a public-facing change (e.g., figures, CLI input/output, API).
    • Documentation (e.g., tutorials, examples, README) has been updated.
    • A tracking issue or plan to update documentation exists.
  • This PR affects internal functionality only (no user-facing change).

Copy link
Contributor Author

@bobleesj bobleesj left a comment

Choose a reason for hiding this comment

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

@sbillinge this is ready for review

cc' @ycexiao since you are writing unit tests for skm, just sharing a PR here for your reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The test function expects to generate this meta.yaml

hooks:
- id: check-yaml
exclude: "{{ cookiecutter.package_import_name }}/meta.yaml"
exclude: ^.*meta\.yaml$
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ignore all meta.yml because it always contains {{ }} jinja variables

@sbillinge sbillinge merged commit 5ba9086 into scikit-package:main Jun 25, 2025
3 checks passed
@bobleesj bobleesj deleted the test-meta.yaml branch June 25, 2025 14:18
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.

ci: add test-on-pr CI tests: add test for checking the outputs of meta.yaml

3 participants