Skip to content

feat: support for graphene-django 3.1.2 #124

feat: support for graphene-django 3.1.2

feat: support for graphene-django 3.1.2 #124

Workflow file for this run

---
name: Run Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
release:
types:
- released
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
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"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
pip install poetry
poetry install
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]
if: ${{ needs.lint.result == 'success' && needs.tests.result == 'success' && github.event.action == 'released' }}
steps:
- uses: actions/checkout@v2
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}