Skip to content

Conversation

@qychen2001
Copy link

What does this PR do?

This PR fixes errors reported by Git Actions when executing code quality and test workflows for new repositories using this template.

The main reason is due to:

  1. The code quality workflow uses Python 3.12, which introduces additional dependency issues
  2. The default installation of numpy using pip installs the latest version of 2.0.0, which causes the test workflow to report errors on Windows systems.

Before submitting

  • Did you make sure title is self-explanatory and the description concisely explains the PR?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you test your PR locally with pytest command?
  • Did you run pre-commit hooks with pre-commit run -a command?

image

Pin the Python version used in GitHub Actions for both code-quality-main.yaml and code-quality-pr.yaml workflows to prevent compatibility errors with default Python 3.12.
Installing numpy version less than 2.0.0 in the GitHub Actions test workflow to prevent potential compatibility issues with other dependencies specified in requirements.txt.
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