Bump certifi from 2022.12.7 to 2023.7.22 #256
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3" | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip | |
restore-keys: | | |
${{ runner.os }}-pip- | |
${{ runner.os }}- | |
- run: python -m pip install flake8 | |
- run: | | |
flake8 . | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ] | |
django-version: [ "3.2", "4.0", "4.1", "4.2"] | |
drf-version: [ "3.11", "3.12", "3.13" ] | |
exclude: | |
# Python 3.7 is incompatible with Django v4+ | |
- django-version: 4.0 | |
python-version: 3.7 | |
- django-version: 4.1 | |
python-version: 3.7 | |
- django-version: 4.2 | |
python-version: 3.7 | |
# Python 3.11 is incompatible with Django <v4.1 | |
- django-version: 3.2 | |
python-version: 3.11 | |
- django-version: 4.0 | |
python-version: 3.11 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-in-project: true | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: ${{ hashFiles('**/poetry.lock') }}-${{ matrix.python-version }}-0 | |
- run: poetry env use ${{ matrix.python-version }} && poetry install --no-root | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
- run: | | |
source .venv/bin/activate | |
pip install "Django==${{ matrix.django-version }}" | |
pip install "djangorestframework==${{ matrix.drf-version }}" | |
- name: Run tests | |
run: | | |
source .venv/bin/activate | |
poetry run coverage run manage.py test -v 2 | |
poetry run coverage report -m |