Skip to content

Commit 4309e70

Browse files
authored
Enable devel testing pipeline (#2337)
1 parent 3b9d005 commit 4309e70

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/tox.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
name: tox
33
on:
4+
merge_group:
5+
branches:
6+
- "main"
47
push:
58
branches:
69
- "main"
@@ -37,6 +40,7 @@ jobs:
3740
lint
3841
docs
3942
pkg
43+
devel:tox -e devel -- -k test_unit
4044
py310:tox -e py310 -- -k test_unit
4145
py311:tox -e py311 -- -k test_unit
4246
py312:tox -e py312 -- -k test_unit

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ skip_missing_interpreters = true
1515

1616
[testenv]
1717
description =
18-
Run the tests under {base_python}
19-
devel: and ansible devel branch
18+
Run the tests
19+
devel: w/ constraints, some devel dependencies
2020
package = editable
21+
deps =
22+
devel: requests@ git+https://github.com/psf/requests.git
2123
extras =
2224
cli
2325
opt
@@ -65,6 +67,8 @@ set_env =
6567
UV_CONSTRAINT = {tox_root}/.config/constraints.txt
6668
deps, devel, hook, lint, pkg, pre, py310, schemas: PIP_CONSTRAINT = /dev/null
6769
deps, devel, hook, lint, pkg, pre, py310, schemas: UV_CONSTRAINT = /dev/null
70+
devel: PIP_PRE = 1
71+
devel: UV_PRERELEASE = allow
6872
commands_pre =
6973
sh -c "rm -f {env_dir}/.coverage.* 2>/dev/null || true"
7074
{env_python} -m pip check
@@ -100,7 +104,7 @@ commands =
100104

101105
[testenv:pkg]
102106
description =
103-
Build package, verify metadata, install package and assert behavior when ansible is missing.
107+
Build package, verify metadata, install package
104108
skip_install = true
105109
deps =
106110
build>=0.9

0 commit comments

Comments
 (0)