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

Use common test scripts for more tests #8396

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

Yay295
Copy link
Contributor

@Yay295 Yay295 commented Sep 19, 2024

Add a CI test script for Windows, and update appveyor, mingw, and windows to use the common test scripts.

- '%PYTHON%\%EXECUTABLE% -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests'
#- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%' TODO TEST_OPTIONS with pytest?
- PATH %PYTHON%;%PATH%
- .ci\test.cmd
Copy link
Member

Choose a reason for hiding this comment

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

Hmm. A minor concern perhaps, but your new version uses a hardcoded value for the Python executable, rather than the configuration from earlier in the file.

EXECUTABLE: python.exe

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All of the test environments use a hardcoded executable name, and even in this file %EXECUTABLE% is always python.exe.

.ci/test.cmd Outdated Show resolved Hide resolved
.appveyor.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@nulano nulano left a comment

Choose a reason for hiding this comment

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

There are still some unexpected skipped tests, but that is caused by #8302, not this PR.

@hugovk hugovk merged commit 731bcda into python-pillow:main Sep 23, 2024
47 checks passed
@Yay295 Yay295 deleted the common_test_script branch September 23, 2024 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants