Skip to content

chore: Update dependencies #28

chore: Update dependencies

chore: Update dependencies #28

Workflow file for this run

name: Run Tests
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Test
runs-on: ubuntu-20.04
strategy:
matrix:
include:
# Django 3.2
- django-version: '>= 3.2, < 3.3'
python-version: "3.7"
- django-version: '>= 3.2, < 3.3'
python-version: "3.8"
- django-version: '>= 3.2, < 3.3'
python-version: "3.9"
- django-version: '>= 3.2, < 3.3'
python-version: "3.10"
# Django 4.0 - 4.1
- django-version: '>= 4.0, < 4.2'
python-version: "3.8"
- django-version: '>= 4.0, < 4.2'
python-version: "3.9"
- django-version: '>= 4.0, < 4.2'
python-version: "3.10"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.5.0
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: |
poetry install --with ci
poetry run pip install "Django ${{ matrix.django-version }}"
- name: Test
run: |
poetry run ./example_project/manage.py check
poetry run pytest --cov=rest_email_auth --cov-report=xml
- name: Upload coverage report
uses: codecov/codecov-action@v3