Skip to content
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

Test: use tox4 to run the tests #244

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
29 changes: 7 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,37 @@ version: 2.1
commands:
run-tox:
description: "Run tox"
parameters:
version:
type: string
sphinx-version:
type: string
default: "5,6,7,8,latest,dev"
steps:
- checkout
# NOTE: use Tox 3.x until I understand the syntax for generative environments:
# https://tox.wiki/en/stable/user_guide.html#generative-environment-list
- run: pip install --user "tox<4"
- run: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}"
- run: pip install --user tox
- run: tox --skip-env docs

jobs:
py38:
docker:
- image: 'cimg/python:3.8'
steps:
- run-tox:
version: py38
sphinx-version: "5,6"
- run-tox
py39:
docker:
- image: 'cimg/python:3.9'
steps:
- run-tox:
version: py39
sphinx-version: "5,6,7"
- run-tox
py310:
docker:
- image: 'cimg/python:3.10'
steps:
- run-tox:
version: py310
- run-tox
py311:
docker:
- image: 'cimg/python:3.11'
steps:
- run-tox:
version: py311
- run-tox
py312:
docker:
- image: 'cimg/python:3.12'
steps:
- run-tox:
version: py312
- run-tox
docs:
docker:
- image: 'cimg/python:3.12'
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
# https://tox.wiki/en/latest/example/package.html#flit
isolated_build = True
isolated_build = true
skip_missing_interpreters = true

envlist =
docs
Expand Down