Skip to content

Commit

Permalink
chore: increase minumum django requirement to 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bellini666 committed Jun 20, 2023
1 parent f58af93 commit 23d4f97
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,38 @@ name: Run Tests

on:
push:
branches: [master]
branches:
- master
pull_request:
branches: [master]
branches:
- master
release:
types:
- released

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.3
with:
extra_args: -a

tests:
runs-on: ubuntu-latest
strategy:
matrix:
django-version: ["2.2.0", "3.0.0", "3.1.0", "3.2.0", "4.0.0", "4.1.0"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

django-version:
- 3.2.*
- 4.0.*
- 4.1.*
- 4.2.*
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -40,18 +47,18 @@ jobs:
python -m pip install --upgrade pip wheel setuptools
pip install poetry
poetry install
poetry run pip install "Django~=${{ matrix.django-version }}"
poetry run pip install "Django==${{ matrix.django-version }}"
- name: Run tests
run: |
poetry run pytest --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

publish:
runs-on: ubuntu-latest
needs: [lint, tests]
needs:
- lint
- tests
if: ${{ needs.lint.result == 'success' && needs.tests.result == 'success' && github.event.action == 'released' }}

steps:
- uses: actions/checkout@v2
- name: Build and publish to pypi
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
]
packages = [{ include = "graphene_django_plus" }]

Expand Down

0 comments on commit 23d4f97

Please sign in to comment.