From 97a82b8a026986f4edcdfeaf5ee27096083043e4 Mon Sep 17 00:00:00 2001 From: Brian Mesick Date: Fri, 1 Nov 2024 14:44:20 -0400 Subject: [PATCH] build: Stop testing against Python 3.8 --- .github/workflows/ci.yml | 44 ++++++++++++++++++++-------------------- tox.ini | 3 +-- 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c520ac..3135678 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: branches: [master] pull_request: branches: - - '**' + - "**" jobs: run_tests: @@ -14,31 +14,31 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ['3.8', '3.11', '3.12'] + python-version: ["3.11", "3.12"] toxenv: [quality, docs, django42] steps: - - uses: actions/checkout@v2 - - name: setup python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} + - uses: actions/checkout@v2 + - name: setup python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} - - name: Install pip - run: pip install -r requirements/pip.txt + - name: Install pip + run: pip install -r requirements/pip.txt - - name: Install Dependencies - run: pip install -r requirements/ci.txt + - name: Install Dependencies + run: pip install -r requirements/ci.txt - - name: Run Tests - env: - TOXENV: ${{ matrix.toxenv }} - run: tox + - name: Run Tests + env: + TOXENV: ${{ matrix.toxenv }} + run: tox - - name: Run Coverage - if: matrix.python-version == '3.8' && matrix.toxenv=='django42' - uses: codecov/codecov-action@v4 - with: - token: ${{ secrets.CODECOV_TOKEN }} - flags: unittests - fail_ci_if_error: true + - name: Run Coverage + if: matrix.python-version == '3.11' && matrix.toxenv=='django42' + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + flags: unittests + fail_ci_if_error: true diff --git a/tox.ini b/tox.ini index 1bc1696..dd9fb64 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{38,311,312}-django{42} +envlist = py{311,312}-django{42} [doc8] ignore = D001 @@ -54,4 +54,3 @@ commands = pydocstyle code_annotations tests setup.py isort --check-only --diff tests test_utils code_annotations setup.py make selfcheck -