From 48315142ff3ed207b555149db2ebbd4be9aec4ea Mon Sep 17 00:00:00 2001 From: Oliver Sauder Date: Thu, 18 Nov 2021 23:17:29 +0400 Subject: [PATCH] Use one GitHub runner per Python version * Moving from tox-gh-actions to tox-py (following DRF) * Move configuration what tests are allowed to failed into tox configuration instead of GitHub settings * Simplification of configuration as tox has the lead and no additional configuration is needed. --- .github/workflows/tests.yml | 13 ++++--------- tox.ini | 21 +++------------------ 2 files changed, 7 insertions(+), 27 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a38766c7..ebe31bb1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,17 +5,12 @@ jobs: test: name: Run test runs-on: ubuntu-latest - continue-on-error: ${{ matrix.django-rest-framework == 'master' }} strategy: fail-fast: false matrix: python-version: ["3.6", "3.7", "3.8", "3.9"] - django: ["2.2", "3.0", "3.1", "3.2"] - django-rest-framework: ["3.12", "master"] env: PYTHON: ${{ matrix.python-version }} - DJANGO: ${{ matrix.django }} - DJANGO_REST_FRAMEWORK: ${{ matrix.django-rest-framework }} steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -25,13 +20,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install tox tox-gh-actions - - name: Test with tox - run: tox + pip install tox tox-py + - name: Run tox targets for ${{ matrix.python-version }} + run: tox --py current - name: Upload coverage report uses: codecov/codecov-action@v2 with: - env_vars: PYTHON,DJANGO,DJANGO_REST_FRAMEWORK + env_vars: PYTHON check: name: Run check runs-on: ubuntu-latest diff --git a/tox.ini b/tox.ini index f4160e5a..075cffc5 100644 --- a/tox.ini +++ b/tox.ini @@ -3,24 +3,6 @@ envlist = py{36,37,38,39}-django{22,30,31,32}-drf{312,master}, lint,docs -[gh-actions] -python = - 3.6: py36 - 3.7: py37 - 3.8: py38 - 3.9: py39 - -[gh-actions:env] -DJANGO = - 2.2: django22 - 3.0: django30 - 3.1: django31 - 3.2: django32 - -DJANGO_REST_FRAMEWORK = - 3.12: drf312 - master: drfmaster - [testenv] deps = django22: Django>=2.2,<2.3 @@ -61,3 +43,6 @@ deps = -rrequirements/requirements-documentation.txt commands = sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html + +[testenv:py{36,37,38,39}-django{22,30,31,32}-drfmaster] +ignore_outcome = true pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy