-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66054b5
commit 5363f79
Showing
5 changed files
with
93 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
test: | ||
poetry run nosetests | ||
|
||
tox: | ||
poetry run tox | ||
test_matrix: | ||
poetry run nox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import nox | ||
import tempfile | ||
from pathlib import Path | ||
import os | ||
from distutils.dir_util import copy_tree | ||
|
||
python_versions = [ | ||
"3.8", | ||
] | ||
|
||
sphinx_versions = [ | ||
"^2.3", | ||
"^3.0", | ||
] | ||
|
||
@nox.session(python=python_versions) | ||
@nox.parametrize("sphinx", sphinx_versions) | ||
def tests(session, sphinx): | ||
# see https://github.com/python-poetry/poetry/issues/2920#issuecomment-693147409 | ||
with tempfile.TemporaryDirectory() as tmp_dir: | ||
copy_tree( | ||
Path.cwd(), tmp_dir | ||
) | ||
os.chdir(tmp_dir) | ||
|
||
session.run('poetry', 'add', f'sphinx@{sphinx}', external=True) | ||
session.run('poetry', 'install', external=True) | ||
session.run('nosetests') |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters