Skip to content

Commit

Permalink
Merge pull request #32 from wimglenn/test-3.12
Browse files Browse the repository at this point in the history
test on Python 3.12
  • Loading branch information
wimglenn authored Nov 15, 2023
2 parents 555082a + b8b8779 commit d335bb2
Showing 1 changed file with 33 additions and 10 deletions.
43 changes: 33 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,48 @@ on:

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
set -xe
pip install ".[dev]"
- name: Run tests for ${{ matrix.python-version }}
run: python -m pytest --cov=drf_queryfields

- name: Upload coverage to Codecov
uses: codecov/codecov-action@main

tests-27:
name: Python 2.7 on ubuntu-20.04
runs-on: ubuntu-20.04
container:
image: python:2.7-buster
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
set -xe
pip install ".[dev]"
- name: "Run tests for ${{ matrix.python-version }}"
- name: Run tests for Python 2.7 on Ubuntu 20.04
run: python -m pytest --cov=drf_queryfields

- name: Upload coverage to Codecov
uses: "codecov/codecov-action@v3"
uses: codecov/codecov-action@main

0 comments on commit d335bb2

Please sign in to comment.