Skip to content

Commit

Permalink
Use Tox 4 in CI (#257)
Browse files Browse the repository at this point in the history
Closes #179
  • Loading branch information
Eric-Arellano authored Apr 13, 2023
1 parent 13e1ce4 commit 8657a7c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs-guide-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
- name: Install Non-Python Dependencies
run: sudo apt-get install -y pandoc graphviz
- name: Install tox
run: python -m pip install -U 'tox<4'
run: python -m pip install -U tox
- name: Test Code Examples
run: tox -e doctest
run: tox run -e doctest
- name: Build Docs Guide
run: tox -e docs-guide
run: tox run -e docs-guide
- name: Bypass Jekyll Processing # Necessary for setting the correct css path
run: touch docs_guide/_build/html/.nojekyll
- name: Deploy
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs-guide-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
- name: Install Non-Python Dependencies
run: sudo apt-get install -y pandoc graphviz
- name: Install tox
run: python -m pip install -U 'tox<4'
run: python -m pip install -U tox
- name: Test Code Examples
run: tox -e doctest
run: tox run -e doctest
- name: Build Docs Guide
run: tox -e docs-guide
run: tox run -e docs-guide
- name: Compress Artifacts
run: |
mkdir artifacts
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.9
- name: Install ubuntu Deps
run: sudo apt-get install -y pandoc graphviz
- name: Install tox
run: |
python -m pip install -U 'tox<4'
python -m pip install -U tox
- name: Build Docs
run: tox -e py
run: tox run -e py
- name: Compress Artifacts
run: |
mkdir artifacts
Expand Down
5 changes: 0 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
[tox]
minversion = 3.10
envlist = py310,py39,py38,py37,lint
skipsdist = True

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
deps =
-r{toxinidir}/requirements-dev.txt
commands = sphinx-build -b html -W --keep-going -j auto {posargs} example_docs/docs/ example_docs/docs/_build/html

[testenv:docs-guide]
usedevelop = True
install_command = pip install -U {opts} {packages}
deps =
-r{toxinidir}/requirements-dev.txt
-r{toxinidir}/docs_guide/requirements-extra.txt
commands = sphinx-build -b html -W --keep-going -j auto {posargs} docs_guide/ docs_guide/_build/html

[testenv:doctest]
usedevelop = True
install_command = pip install -U {opts} {packages}
deps =
-r{toxinidir}/requirements-dev.txt
-r{toxinidir}/docs_guide/requirements-extra.txt
commands = sphinx-build -b doctest -W --keep-going -j auto {posargs} docs_guide/ docs_guide/_build/doctest

[testenv:lint]
envdir = .tox/lint
commands =
pylint -rn -j 0 --rcfile={toxinidir}/.pylintrc qiskit_sphinx_theme

0 comments on commit 8657a7c

Please sign in to comment.