Skip to content

Use one GitHub runner per Python version #1011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
21 changes: 3 additions & 18 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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