Skip to content

Commit

Permalink
Test against different versions of Pillow
Browse files Browse the repository at this point in the history
  • Loading branch information
vstoykov committed Sep 26, 2023
1 parent 2654570 commit a4a8a80
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip tox
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Run Tests
run: |
tox -e py$(python -c 'import sys;print("{0}{1}".format(*sys.version_info))')
run: tox
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,20 @@ def read(filepath):
packages=find_packages(exclude=['tests', 'tests.*']),
zip_safe=False,
include_package_data=True,
install_requires=[],
install_requires=[
'Pillow>=7.0'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Utilities'
],
)
17 changes: 15 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
[tox]
envlist =
py{311,310,39,38,37,36},
py{311,310,39,38}-pillow{7,8,9,10}
py37-pillow{9,8,7}
py36-pillow{8,7}
coverage-report

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311, coverage-report

[testenv]
setenv = COVERAGE_FILE=.coverage.{envname}
commands = python -m pytest --cov --cov-report term-missing:skip-covered
deps =
pytest
pytest-cov
mock>=1.0.1
Pillow
pillow8: Pillow~=8.4.0
pillow9: Pillow~=9.5.0
pillow10: Pillow~=10.0.1


[testenv:coverage-report]
Expand Down

0 comments on commit a4a8a80

Please sign in to comment.