Skip to content

Commit

Permalink
Remove macos and windows from "tox.ini"
Browse files Browse the repository at this point in the history
Having these in there means that a simple `tox` invocation will test
against them, even for somebody who wants to test locally on his
machine, which obviously only has one platform. Since currently that's
almost always Linux, that's the platform we keep as a minimal baseline
environment on which to get the tests running again.
In the long run, I'd also like to make the "tox.ini" as platform
agnostic as possible and push all platform specific code into the
workflow definition file.
  • Loading branch information
gnn committed Nov 26, 2021
1 parent efc94d1 commit 26a0a03
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ python =
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows

[tox]
envlist =
clean,
docs,
py{37,38}-{cover,nocov}-{linux,macos,windows},
py{37,38}-{cover,nocov}-{linux},
report

[testenv]
Expand Down Expand Up @@ -92,7 +90,7 @@ commands = coverage erase
skip_install = true
deps = coverage

[testenv:py37-cover-{linux,macos,windows}]
[testenv:py37-cover-{linux}]
basepython = {env:TOXPYTHON:python3.7}
setenv =
{[testenv]setenv}
Expand All @@ -103,10 +101,10 @@ deps =
{[testenv]deps}
pytest-cov

[testenv:py37-nocov-{linux,macos,windows}]
[testenv:py37-nocov-{linux}]
basepython = {env:TOXPYTHON:python3.7}

[testenv:py38-cover-{linux,macos,windows}]
[testenv:py38-cover-{linux}]
basepython = {env:TOXPYTHON:python3.8}
setenv =
{[testenv]setenv}
Expand All @@ -117,5 +115,5 @@ deps =
{[testenv]deps}
pytest-cov

[testenv:py38-nocov-{linux,macos,windows}]
[testenv:py38-nocov-{linux}]
basepython = {env:TOXPYTHON:python3.8}

0 comments on commit 26a0a03

Please sign in to comment.