Skip to content

Commit

Permalink
Run tests with Flask 3 and newer Python runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Aug 1, 2024
1 parent 2884d7d commit 012b49e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeout-minutes: 5
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -21,14 +21,14 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -U pip pytest # python 2.7 requires pytest 4
python setup.py install
pip install flake8
pip install -U pip
pip install -e .
pip install -r requirements-dev.txt
- name: Run all tests
run: |
python_version=`python -V`
if [ ${python_version:7:3} == "3.9" ]; then
if [ ${python_version:7:3} == "3.12" ]; then
pip install -U flake8
flake8 slackeventsapi
pytest --cov-report= --cov=slackeventsapi tests && bash <(curl -s https://codecov.io/bash)
else
Expand Down
15 changes: 7 additions & 8 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
coveralls<2
pytest>=6,<7
pytest-flask<2
pytest-mock<2
pytest-cov<3
pytest-pythonpath<0.8
testfixtures<7
werkzeug<2
flask
werkzeug
pytest
pytest-mock
pytest-cov
pytest-flask
testfixtures
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def find_version(*file_paths):
long_description_content_type='text/x-rst',
long_description=long_description,
install_requires=[
'flask>=2,<3',
'flask>=2,<4',
'pyee>=8',
],
classifiers=[
Expand All @@ -50,5 +50,7 @@ def find_version(*file_paths):
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
zip_safe=False)

0 comments on commit 012b49e

Please sign in to comment.