Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 976ffc4

Browse files
authored
chore: run action tests when calling tox (#12)
This also cleans up a bunch of crust for non-existing targets like unit. Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com> **Checklist:** - [ ] **Commit Message Formatting**: Commit titles and messages follow guidelines in the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary). - [ ] [Changelog](https://github.com/instructlab/ci-actions/blob/main/CHANGELOG.md) updated with breaking and/or notable changes for the next minor release. - [ ] Documentation has been added and/or updated, if applicable. - [ ] Unit tests have been added and/or updated. (If this is not applicable, please provide a justification.) - [ ] Integration testing has been performed, if applicable ## Description of this Change Approved-by: courtneypacheco Approved-by: ktdreyer
2 parents c4ae6b1 + f17ebdb commit 976ffc4

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

tox.ini

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
[tox]
4-
# py3-unit runs unit tests with 'python3'
5-
# py311-unit runs the same tests with 'python3.11'
6-
envlist = ruff, lint, mypy, py3-unit
4+
envlist = ruff, lint, mypy, detect-exposed-workflow-secrets, launch-ec2-runner-with-fallback
75
minversion = 4.4
86

9-
[testenv]
10-
description = run tests (unit, unitcov)
11-
deps = -r requirements-dev.txt
12-
commands =
13-
unit: {envpython} -m pytest {posargs:tests}
14-
unitcov: {envpython} -W error::UserWarning -m pytest --cov=src --cov-report term --cov-report=html:coverage-{env_name} --cov-report=xml:coverage-{env_name}.xml --html=durations/{env_name}.html {posargs:tests -m "not (examples or slow)"}
15-
167
[testenv:py3]
178
basepython = python3.11
189

19-
[testenv:py3-unit]
20-
basepython = {[testenv:py3]basepython}
21-
2210
[testenv:detect-exposed-workflow-secrets]
23-
description = run Python unit tests (unit, unitcov)
11+
description = run Python unit tests
2412
change_dir = actions/detect-exposed-workflow-secrets/exposed_secrets_detection/
2513
deps =
2614
pytest-cov
@@ -118,8 +106,3 @@ change_dir = actions/launch-ec2-runner-with-fallback/tests/
118106
commands =
119107
# "UNIT" TESTS: launch-ec2-runner-with-fallback
120108
./test_get_config_value.sh
121-
122-
[gh]
123-
python =
124-
3.11 = py311-unitcov
125-
3.10 = py310-unitcov

0 commit comments

Comments
 (0)