Skip to content

Commit

Permalink
Try tox-gh
Browse files Browse the repository at this point in the history
  • Loading branch information
sevdog committed Oct 6, 2023
1 parent ddd662d commit 8775d04
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Linters/Tests

on: pull_request

concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true

jobs:

tests:
Expand All @@ -20,13 +24,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install --upgrade tox tox-py

- name: Run tox targets for ${{ matrix.python-version }}
run: tox --py current
- name: Install tox
run: python -m pip install tox-gh>=1.2
- name: Setup test suite
run: tox -vv --notest
- name: Run test suite
run: tox --skip-pkg-install

lint:
name: Run black
Expand Down
9 changes: 9 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ envlist =
py{38,39,310,311,312}-django{40,41,42}
py{310,311,312}-django{50,master}

[tox:gh]
python =
3.12 = py312
3.11 = py311
3.10 = py310
3.9 = py39
3.8 = py38
3.7 = py37

[testenv]
usedevelop = true
extras = tests
Expand Down

0 comments on commit 8775d04

Please sign in to comment.