Skip to content

Bump urllib3 from 1.26.17 to 1.26.18 #111

Bump urllib3 from 1.26.17 to 1.26.18

Bump urllib3 from 1.26.17 to 1.26.18 #111

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: [ 3.8, 3.9, '3.10', 3.11]
poetry-version: [ 1.3.2 ]
django-version: [ 3.2.18, 4.1, 4.2 ]
drf-version: [ 3.12, 3.14 ]
os: [ ubuntu-latest ]
exclude:
# not compatible
- django-version: 4.2
drf-version: 3.12
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install --only main,test --all-extras
- name: Upgrade django version
run: |
poetry run pip install "Django==${{ matrix.django-version }}"
- name: Upgrade drf version
run: |
poetry run pip install "djangorestframework==${{ matrix.drf-version }}"
- name: Echo env
run: poetry run pip freeze | grep -E 'djangorestframework|Django'
- name: Run tests
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true
verbose: true
code-quality:
strategy:
fail-fast: false
matrix:
python-version: [ 3.8 ]
poetry-version: [ 1.3.2 ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install --only code-quality
- name: Run pre-commit
run: make run-hooks