Skip to content

Commit

Permalink
speed up tox
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Dec 18, 2023
1 parent 784e149 commit 1d954f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
python-versions: [3.11]
python-versions: ["3.11"]

steps:
- name: Get repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
name: Run tests and auto checks on code
strategy:
matrix:
python-versions: [3.11, 3.12]
python-versions: ["3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -57,4 +57,4 @@ jobs:

# tox handles the logic for what tests etc. to run. See tox.ini for details.
- name: Run tox (includes tests, format, lint, docs)
run: poetry run tox -vv
run: poetry run tox -vv --skip-pkg-install
15 changes: 2 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
[tox]
isolated_build = true
envlist = py311, format, lint, build
envlist = test, format, lint, build

[testenv]
[testenv:test]
allowlist_externals = pytest
extras =
test
passenv = *
commands =
pytest tests -vvv

[testenv:format]
allowlist_externals =
ruff
extras =
test
commands =
ruff format networkframe tests

[testenv:lint]
allowlist_externals =
ruff
mypy
extras =
test
commands =
ruff check networkframe tests
mypy networkframe tests
Expand All @@ -33,9 +25,6 @@ allowlist_externals =
poetry
mkdocs
twine
extras =
doc
dev
commands =
poetry build
mkdocs build
Expand Down

0 comments on commit 1d954f5

Please sign in to comment.