Commit Graph

542 Commits

Author SHA1 Message Date
Andrew Murray
c2007e7558 Merge branch 'main' into codecov 2022-08-27 15:51:16 +10:00
Andrew Murray
2d21bc06f3
Replaced Codecov bash uploader with GitHub Action 2022-08-27 12:17:40 +10:00
Andrew Murray
e58b1960c3 Set top-level permissions for remaining GitHub Actions 2022-08-26 22:48:12 +10:00
Andrew Murray
ac83011fbf NumPy now supports Python 3.11 2022-08-26 18:09:18 +10:00
nulano
b330ff910d
upload fribidi.dll to GHA 2022-08-24 22:04:43 +02:00
Andrew Murray
55d94558fb Do not install test-image-results on GitHub Actions 2022-08-13 23:14:32 +10:00
Andrew Murray
8464ed423b Updated Valgrind job to Jammy 2022-08-02 08:03:52 +10:00
neilnaveen
43b185e1c1 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2022-07-04 01:19:58 +00:00
Hugo van Kemenade
31b98bb3ba
Merge pull request #6222 from radarhere/python3
Use python3
2022-06-10 19:02:13 +03:00
Andrew Murray
961e16fa24 Link to GitHub discussions [ci skip] 2022-05-25 22:14:29 +10:00
Andrew Murray
69e07c2bf9 Upgrade non-amd64 Ubuntu jobs to Jammy 2022-05-18 10:11:52 +10:00
Hugo van Kemenade
c4325c805e
Merge pull request #5878 from DWesl/add-cygwin-to-ci 2022-05-12 14:23:04 +03:00
DWesl
30db27c3aa
CI: Only invoke bash once for build step.
Let's see if this works.

Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2022-05-11 08:01:02 -04:00
Andrew Murray
1dff85a7ee Added Fedora 36 2022-05-10 20:57:36 +10:00
Andrew Murray
035e95551d Use build.sh 2022-05-08 21:38:28 +10:00
Andrew Murray
c6cdd4dd52 Adjust formatting 2022-05-07 23:13:41 +10:00
Andrew Murray
dc4906c865 Updated codecov action to v3 2022-05-07 22:50:30 +10:00
DWesl
c5356010ff
Merge pull request #8 from radarhere/add-cygwin-to-ci
Removed steps that are currently unnecessary.  Hopefully they stay that way.
2022-05-07 07:46:41 -04:00
DWesl
7c97d84576
CI: Stop testing numpy imports
Install seems to be working now.

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-05-07 07:42:40 -04:00
Andrew Murray
a5b20f7a34 Removed setting alternative 2022-05-07 15:29:49 +10:00
Andrew Murray
eee481176d Removed DLL rebase 2022-05-07 14:52:28 +10:00
DWesl
b670df828d
STY: Fix English in .github/workflows/test-cygwin.yml
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-05-06 22:43:03 -04:00
DWesl
2067f60409 STY: Commit suggestions from PR review. 2022-05-05 15:21:22 -04:00
DWesl
941ff61f17
CI: Drop 32-bit Cygwin from regular testing
Cygwin recommends using 64-bit if at all possible, and will discontinue support entirely within the next year or so.  

This also reduces CI load, which I suppose is polite to those who provide it at no cost.
2022-05-04 09:23:24 -04:00
DWesl
0b134250fa
CI: Use alternatives to select python version (#4)
* CI: Use alternatives to select python version

* CI: Specify full path to alternatives

/usr/sbin isn't in PATH

* DBG: Print uname to try to avoid bad pip install.

pip>=22 on 32-bit Cygwin seems to cause problems installing coverage.  I have no idea why this is, so I just skip upgrading pip there.

* FIX: Fix syntax of conditional for 32-bit Cygwin

I have no idea if it needs to be able to accept i386, but it will if it comes up.

* FIX: Revert earlier debug change.
2022-05-02 20:38:12 -04:00
DWesl
ce7489884f
CI: Update Cygwin pip, but not on 32-bit
* CI: Update Cygwin pip, but not on 32-bit

32-bit Cygwin pip>=22 fails to install coverage.

* CI: Let .ci/install.sh handle updating pip

* CI Combine pip update conditions

* CI: Don't try to upgrade pip on 32-bit Cygwin
2022-05-02 17:54:49 -04:00
DWesl
143e57b6cd
CI: Specify python minor version everywhere on Cygwin
Finish the last few of these.  It's usually unnecessary, but I ran into trouble once with NumPy, and will likely run into more problems if I start submitting packages.

A different option would be to use alternatives to point python3 at the right python.
2022-04-29 20:40:57 -04:00
DWesl
08e0d0b817
CI: Use bash for rebase step
Hopefully this makes sure rebase finds all of pillow's C extension modules so rebase failures are less likely.
2022-04-29 13:15:04 -04:00
DWesl
88c406eac9
CI: Stop using login shell for build step 2022-04-29 12:57:52 -04:00
DWesl
e0f4c21d01
CI: Remind bash to ignore CR in workflow 2022-04-29 12:36:05 -04:00
DWesl
41976ae125
FIX: Fix syntax for shell call 2022-04-29 11:34:13 -04:00
DWesl
ed0c37d528
CI: Don't use shell for build information 2022-04-29 11:27:01 -04:00
DWesl
91e6457360
CI: Stop using login shell for build info
I should probably avoid login shells in any step that uses a relative path.
2022-04-29 10:53:19 -04:00
DWesl
afa3cea96a
Merge branch 'main' into add-cygwin-to-ci 2022-04-29 10:43:30 -04:00
DWesl
fdbab82f9e
CI: Use dash to check system-info.py
This may be a problem with using a login shell (starts in ~) rather than with using bash over dash.  We'll see in a bit.
2022-04-29 09:54:23 -04:00
Hugo van Kemenade
b4dab3aca3 Test Python 3.11-dev 2022-04-28 23:15:38 +03:00
Andrew Murray
853a95d56b
Merge branch 'main' into add-cygwin-to-ci 2022-04-25 11:00:09 +10:00
DWesl
9fb79513a2 FIX, CI: Change shell to stay in repository. 2022-04-23 08:51:09 -04:00
DWesl
46c1f9389e CI: Update pip before installing dependencies.
Avoid pip warnings.
2022-04-23 08:33:13 -04:00
DWesl
1674e425a7 CI: Sort the Cygwin requirements. 2022-04-23 08:33:13 -04:00
DWesl
7605e46011 CI: Set shell for Cygwin CI steps
Allows me to avoid .ci/build_cygwin.sh
2022-04-23 08:31:51 -04:00
Andrew Murray
dd7cbdec95
Merge pull request #6233 from python-pillow/pipfile
Run Tidelift Align on Pipfile changes
2022-04-23 06:44:54 +10:00
DWesl
805e8f10ba
CI: Try to fix Cygwin pip cache 2022-04-22 08:25:46 -04:00
Andrew Murray
a7438ecaf0 Added Ubuntu 22.04 to Docker jobs 2022-04-22 17:35:20 +10:00
DWesl
c1d3bac917
CI: Fix runner username for pip cache 2022-04-21 10:26:12 -04:00
Andrew Murray
df4ddc1d84 Run Tidelift Align on Pipfile changes 2022-04-21 12:05:47 +03:00
DWesl
be6dd712ba
Ci: Simplify Cygwin pip cache
This might pave the way for caching the Cygwin install, which might speed things up a bit.
2022-04-20 20:48:57 -04:00
DWesl
bd61d1ef1b
FIX, CI: Actually run pip 2022-04-20 10:28:02 -04:00
DWesl
97e6197e9f
CI: Set up cache for Cygwin pip
Copied from the MIT-licensed:
https://github.com/actions/cache/blob/main/examples.md#using-pip-to-get-cache-location
2022-04-20 10:17:45 -04:00
Andrew Murray
23560348c1
Use python3 in build system information
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-04-18 14:37:00 +10:00
Andrew Murray
e8b2b9baca Use python3 2022-04-18 12:53:55 +10:00
Andrew Murray
cdfe08bc5e Only install NumPy through pip on 64-bit 2022-04-16 19:14:00 +10:00
Andrew Murray
635f8cf327 Added Python 3.9 2022-04-16 15:42:09 +10:00
DWesl
1d1c22e1d4
CI: Update versions of actions used by Cygwin CI
As suggested by code review.

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-15 20:45:19 -04:00
DWesl
7099ade15a
Merge branch 'main' into add-cygwin-to-ci 2022-04-15 14:47:28 -04:00
Hugo van Kemenade
0329b8fa1d
Seven days before stale 2022-04-13 16:07:20 +03:00
Hugo van Kemenade
317ea9a8bb
Remove debug mode so it can close stale issues 2022-04-13 16:04:23 +03:00
Hugo van Kemenade
fb361fc89e
Consider stale after some time, make available for closure immediately
For https://github.com/python-pillow/Pillow/pull/6203
2022-04-13 15:57:20 +03:00
Andrew Murray
a04d6919e1
Merge pull request #6204 from hugovk/stale
Stale action: skip PRs without the special label and never close PRs
2022-04-12 22:38:29 +10:00
Hugo van Kemenade
d144fe325d Never close PRs 2022-04-12 14:54:29 +03:00
Hugo van Kemenade
4160d9145e Skip all PRs without the special label 2022-04-12 14:53:50 +03:00
Hugo van Kemenade
df51c357eb
Bump to v5
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-12 13:41:13 +03:00
Hugo van Kemenade
c45a29d5fe TEMP testing 2022-04-12 13:25:31 +03:00
Hugo van Kemenade
4258246ed5 Use actions/stale to close 'Awaiting OP Action' that have had no response in 7 days 2022-04-12 13:25:31 +03:00
Andrew Murray
c3c5b31ef1 Updated Ghostscript to 9.56.1 2022-04-05 07:51:51 +10:00
Andrew Murray
986ae73562
Merge pull request #6158 from hugovk/furo
Replace Read the Docs Sphinx Theme with Furo
2022-04-04 23:23:57 +10:00
Andrew Murray
1982743afc Removed Fedora 34 2022-04-01 22:00:07 +11:00
Hugo van Kemenade
abd9eda499 Replace Read the Docs Sphinx Theme with Furo 2022-03-28 20:00:07 +03:00
Andrew Murray
954aa4e01d Updated setup-python, checkout and upload-artifact actions to v3 2022-03-04 20:04:12 +11:00
Andrew Murray
e5537b545a
Merge branch 'main' into add-cygwin-to-ci 2022-03-04 17:20:02 +11:00
Andrew Murray
949e4afaa9 Updated Python for doccheck to 3.10 2022-03-01 09:19:04 +11:00
Andrew Murray
839b634fd5 Install gcc to allow coverage to build 2022-02-24 09:16:32 +11:00
Andrew Murray
57f106c683 Enable heap verification without gflags 2022-02-24 09:16:05 +11:00
Andrew Murray
415d679f84 Added Gentoo to Docker jobs 2022-02-23 15:26:16 +11:00
Andrew Murray
9237150431 Added CentOS Stream 9 2022-02-08 23:35:01 +11:00
DWesl
b582806887 Merge remote-tracking branch 'upstream/main' into add-cygwin-to-ci 2022-02-06 11:03:11 -05:00
DWesl
2d6dee1dae CI: Try to get Cygwin workflow working. 2022-02-06 07:34:15 -05:00
Andrew Murray
131212368d Install netpbm 2022-02-03 15:55:44 +11:00
Andrew Murray
6fded1ac97 Install cjpeg and djpeg 2022-02-03 14:07:51 +11:00
Andrew Murray
05637393a6 Install Pillow directly 2022-02-02 15:31:31 +11:00
Andrew Murray
8d2c56ec1f Upload errors on failure 2022-02-02 15:31:30 +11:00
Andrew Murray
4be3b760f2 Connected Cygwin jobs to mergify 2022-02-02 15:31:30 +11:00
Andrew Murray
728bc7d778 Added matrix to test Python 3.7 and 32-bit 2022-02-02 15:31:30 +11:00
Andrew Murray
629340654c Switched to cygwin/cygwin-install-action 2022-02-02 15:31:20 +11:00
Andrew Murray
e1c27358ba Switched to windows-latest 2022-02-02 14:44:16 +11:00
Hugo van Kemenade
54e9decde3 Remove EOL CentOS 8 2022-01-31 23:41:16 +02:00
Andrew Murray
d8e94c206e Switched from windows-2019 to windows-latest 2022-01-30 14:40:30 +11:00
Andrew Murray
179cdd4444 Merge branch 'main' into add-cygwin-to-ci 2022-01-29 13:59:37 +11:00
Andrew Murray
c8d650f383 Added Debian 11 Bullseye 2022-01-17 14:07:30 +11:00
DWesl
4e7e70fd79 CI: Install netpbm and dependencies on Cygwin CI. 2022-01-08 10:08:18 -05:00
DWesl
a23131c22e CI: Stop trying to run the netpbm tests. 2022-01-07 14:49:45 -05:00
DWesl
7ad8fdb677 CI: Get all the tests running on Cygwin. 2022-01-07 14:34:30 -05:00
DWesl
fa536b4d34 Merge branch 'main' of upstream into add-cygwin-to-ci 2021-12-26 14:28:29 -05:00
Alex Clark
9d0703a8a8
Merge pull request #5763 from python-pillow/new-badge 2021-12-25 07:21:33 -05:00
DWesl
b9fee08c59 TST: Parametrize numpy roundtrip to find failing case
Segfaults are annoying to debug.
2021-12-18 10:00:14 -05:00
DWesl
1c25d95d5a CI: Get cygwin tests running
They segfault in one of the NumPy tests, but they run.
2021-12-18 09:55:24 -05:00
Andrew Murray
a1677ead44 Switched from deprecated "setup.py install" to "pip install ." 2021-12-18 19:43:23 +11:00
Andrew Murray
e7e05e2701 GHA: Restored macos-latest for PyPy builds 2021-12-18 19:39:05 +11:00
Andrew Murray
603fb34701 GHA: Still use macos-latest for non-PyPy builds 2021-12-15 08:10:12 +11:00
Hugo van Kemenade
5b023c7d48 GHA: Use macos-10.15 to fix build 2021-12-14 17:10:09 +02:00
DWesl
7fd3e9977e CI: Make sure correct version of python is used for testing.
Cygwin is trying to use the highest-available Python version.
One of the Python packages has scripts in /usr/bin that should be in the python39- subpackage.
2021-12-11 15:59:45 -05:00
DWesl
90cf149cbe CI: Fix the spelling on the codecov repository. 2021-12-11 15:17:28 -05:00
DWesl
4cfb1a854f CI: Use the new GitHub Action for codecov
The old bash downloader will be removed soon.
2021-12-11 15:13:56 -05:00
DWesl
407abbfa18 CI: Try to get tests fully working
The actual test step wasn't running, so try to run that as a shell
script rather than an executable.  Also get more of the dependencies
installed.
2021-12-11 15:12:31 -05:00
DWesl
9ec4034bff CI: Incorporate suggestions from PR.
Upload coverage information, add Cygwin to the list of systems with CI,
space out entries.
2021-12-11 08:27:35 -05:00
DWesl
1daaf9273c CI: Split the config check from the actual test.
I'm using selftest.py to check whether I've installed everything.
Pytest actually finds and runs the tests.  For some reason that wasn't
running earlier.
2021-12-10 21:53:43 -05:00
DWesl
cd087c6007 CI: Fix the path to the build wheels.
setup.py bdist_wheel goes to dist/*.whl
pip wheel goes to *.whl
2021-12-10 21:20:47 -05:00
DWesl
8ebac45f24 CI: Explicitly use dash to get shell globbing. 2021-12-10 21:14:41 -05:00
DWesl
a4495decf8 CI: Stop using dash so the DOS line endings don't throw things off. 2021-12-10 19:57:44 -05:00
DWesl
b798989f33 CI: Make sure all python requirements are installed in Cygwin CI.
For some reason wheel wasn't installed properly.
2021-12-10 19:08:28 -05:00
DWesl
67bef87a07 CI: Specify where the command line goes in the shell.
I think this is how specifying the shell works.  The documentation
isn't terribly clear.
2021-12-10 18:21:23 -05:00
DWesl
fdbb1870d4 CI: Add a cygwin run to GitHub Actions.
Requested for the _imagingtk fix.
2021-12-10 08:52:46 -05:00
Alex Clark
d23afb3e26
Update .github/workflows/tidelift.yml
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-12-01 17:05:02 -05:00
Alex Clark
ae4d5d913c Not deprecated, re-add org and proj 2021-12-01 14:15:40 -05:00
Alex Clark
c373ac188c Remove org and proj because deprecated, I think 2021-12-01 14:13:07 -05:00
Alex Clark
91fb7fc067 Add hugovk suggestion 2021-12-01 13:58:13 -05:00
Hugo van Kemenade
915d014136 GHA: Change condition to allow manually building wheels in forks 2021-12-01 12:42:11 +02:00
Hugo van Kemenade
22ad04743c GHA: Add workflow_dispatch to enable manually triggering builds 2021-11-30 22:14:34 +02:00
Hugo van Kemenade
71f7c806ac
Simplify cache-dependency-path
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-11-18 14:33:57 +02:00
Hugo van Kemenade
b744e7933a Use actions/setup-python's pip cache 2021-11-18 13:42:41 +02:00
Andrew Murray
25979a51e7 Added Fedora 35 2021-11-03 21:31:12 +11:00
Andrew Murray
44a61bb380
Merge pull request #5778 from hugovk/add-pypy-3.8
Test PyPy3.8
2021-10-19 11:27:51 +11:00
Hugo van Kemenade
90d5edb0e4 Install pytest-timeout for MinGW CI 2021-10-18 16:06:07 +03:00
Hugo van Kemenade
3e9a6f7508 Test slower macOS first, for slightly faster builds 2021-10-18 14:33:02 +03:00
Hugo van Kemenade
86f32f6074 Test PyPy3.8 2021-10-18 14:33:02 +03:00
Hugo van Kemenade
67b4cb52d1 Stop testing Python 3.6 on CI 2021-10-18 14:33:02 +03:00
Hugo van Kemenade
2f29c1233a Test PyQt6 on MinGW 2021-10-16 23:01:08 +03:00
Hugo van Kemenade
3c8128d2af
Merge branch 'main' into new-badge 2021-10-16 15:22:20 +03:00
Hugo van Kemenade
a8c18d0817 Rename master to main 2021-10-15 17:30:05 +03:00
Andrew Murray
90ffafeebc Removed Fedora 33 docker job 2021-10-15 19:19:26 +11:00
Hugo van Kemenade
836f740f7b Don't run for forks: missing secrets would fail 2021-10-14 23:00:02 +03:00
Alex Clark
76b5760b38 Create tidelift.yml 2021-10-14 22:57:34 +03:00
Hugo van Kemenade
ce3c925a51
Delete tidelift.yml 2021-10-14 22:46:42 +03:00
Alex Clark
5c69dc7c9a
Create tidelift.yml 2021-10-14 13:42:18 -04:00
Hugo van Kemenade
8eb3c9791d Test Python 3.10.0 final on GitHub Actions 2021-10-05 11:54:12 +03:00
Andrew Murray
a80f8133d6 Updated Ghostscript to 9.55.0 2021-09-27 23:19:05 +10:00
Hugo van Kemenade
5b7add9df7 Add CentOS Stream 8 2021-09-16 14:40:34 +03:00
Hugo van Kemenade
a761d9b0c7
Rename to "Build" for consistency
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-09-12 10:10:31 +03:00
Hugo van Kemenade
2bd2fbbf0b Move MinGW to own workflow 2021-09-11 17:13:48 +03:00
Hugo van Kemenade
d72b507a42 Remove unused job 2021-09-11 16:53:37 +03:00
Andrew Murray
771c7d937e Install numpy on Python 3.10 2021-08-10 12:46:12 +10:00
Andrew Murray
d9d811ff21 Replaced xml.etree.ElementTree with defusedxml.ElementTree 2021-06-30 11:28:44 +10:00
Andrew Murray
a42a35269a Reverse test order for two jobs 2021-06-14 22:58:40 +10:00
Hugo van Kemenade
ca97b16c0a
Install normalised sphinx-copybutton
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-05-16 09:46:00 +03:00
Hugo van Kemenade
5caa04c2d1 Build docs with sphinx_copybutton and sphinxext.opengraph 2021-05-14 20:13:44 +03:00
Andrew Murray
f132e4de8d Removed setuptools version requirement 2021-05-14 19:48:47 +10:00
Andrew Murray
256372724b
Merge pull request #5456 from python-pillow/revert-5447-python310
Revert "Fixed Python 3.10 at alpha.7": use 3.10-dev
2021-04-30 19:22:22 +10:00
Hugo van Kemenade
05f9e23024
Merge pull request #5453 from nulano/pypy-win64
GHA: Update test-windows for 64-bit PyPy 7.3.4 release
2021-04-30 12:09:59 +03:00
Hugo van Kemenade
ee94f4e394
Revert "Fixed Python 3.10 at alpha.7" 2021-04-30 11:35:27 +03:00
Hugo van Kemenade
4669345746
Merge pull request #5447 from radarhere/python310
Fixed Python 3.10 at alpha.7
2021-04-29 14:16:18 +03:00