Skip to content

Commit

Permalink
test(tox): update test environments for tox
Browse files Browse the repository at this point in the history
  • Loading branch information
gaige committed Jun 29, 2024
1 parent 5e9dff7 commit eaf8e7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ tox
and with test coverage:

```bash
tox -e py37-cov
tox -e py311-cov
```

The easiest way to write tests, is to edit tests/fixtures.md

To run the code formatting and style checks:

```bash
tox -e py37-pre-commit
tox -e py311-pre-commit
```

or directly
Expand All @@ -60,7 +60,7 @@ pre-commit run --all
To run the pre-commit hook test:

```bash
tox -e py37-hook
tox -e py311-hook
```

## Publish to PyPi
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[tox]
envlist = py{36,37,38,39}
envlist = py{38,39,310,311,312}
isolated_build = True

[testenv:py{36,37,38,39}]
[testenv:py{38,39,310,311,312}]
extras = test
commands = pytest {posargs}

[testenv:py{36,37,38,39}-cov]
[testenv:py{38,39,310,311,312}-cov]
extras = test
commands = pytest --cov={envsitepackagesdir}/mdformat_pelican {posargs}

[testenv:py{36,37,38,39}-pre-commit]
[testenv:py{38,39,310,311,312}-pre-commit]
extras = dev
commands = pre-commit run {posargs}

[testenv:py{36,37,38,39}-hook]
[testenv:py{38,39,310,311,312}-hook]
extras = dev
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}

Expand Down

0 comments on commit eaf8e7e

Please sign in to comment.