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

Update test config #130

Merged
merged 11 commits into from
Nov 25, 2024
14 changes: 7 additions & 7 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -29,18 +29,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
pip install tox tox-gh
- name: Test with tox
env:
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
Expand Down
8 changes: 4 additions & 4 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
black==22.3.0
coverage==6.2
coverage==7.2.7
flake8==3.8.4
importlib-metadata==3.6.0
isort==5.7.0
jedi==0.10.2
mock==2.0.0
mypy==0.920
pytest==6.2.5
pytest-cov==3.0.0
tox==3.8.5
pytest==7.1.3
pytest-cov==4.1.0
tox==4.23.2
twine==3.3.0
wheel
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,48 @@ line_length = 88
[tool.isort]
profile = "black"
multi_line_output = 3

[tool.tox]
legacy_tox_ini = """
[tox]
# https://docs.djangoproject.com/en/5.1/faq/install/#what-python-version-can-i-use-with-django
env_list =
django{18,110,111,21,22,3,31}-py{37,38,39}-sendgrid{5,6}
django{32}-py{37,38,39,310,311,312}-sendgrid{5,6}
django{4,41,42}-py{38,39,310,311,312}-sendgrid{5,6}
django{5}-py{310,311,312}-sendgrid{5,6}
django{51}-py{310,311,312,313}-sendgrid{5,6}

[gh]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313

[testenv]
deps =
django18: Django>=1.8,<1.9
django110: Django>=1.10,<1.11
django111: Django>=1.11,<2
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
django3: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<4
django4: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django5: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
sendgrid5: sendgrid>=5,<6
sendgrid6: sendgrid>=6,<7
pytest-cov

commands =
pytest ./test --cov=sendgrid_backend
passenv =
SENDGRID_API_KEY
"""
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@
author="Steven Sklar",
author_email="[email protected]",
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
keywords="django email sendgrid backend",
packages=find_packages(
Expand Down
37 changes: 0 additions & 37 deletions tox.ini

This file was deleted.