Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors reported in Git Actions for code-quality and test workflows #643

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

None yet

1 participant