Skip to content

Commit 1a4fb14

Browse files
authored
Add pipeline for testing with prereleased dependencies (#3779)
1 parent 9558c92 commit 1a4fb14

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/tox.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ env:
1818
PY_COLORS: 1
1919

2020
jobs:
21-
pre:
22-
name: pre
21+
prepare:
22+
name: prepare
2323
runs-on: ubuntu-22.04
2424
outputs:
2525
matrix: ${{ steps.generate_matrix.outputs.matrix }}
@@ -37,6 +37,7 @@ jobs:
3737
docs
3838
schemas
3939
eco
40+
pre
4041
py310-devel
4142
platforms: linux,macos
4243
test-action:
@@ -52,14 +53,14 @@ jobs:
5253
name: ${{ matrix.name }}
5354
runs-on: ${{ matrix.os || 'ubuntu-22.04' }}
5455
needs:
55-
- pre
56+
- prepare
5657
- test-action
5758
defaults:
5859
run:
5960
shell: ${{ matrix.shell || 'bash'}}
6061
strategy:
6162
fail-fast: false
62-
matrix: ${{ fromJson(needs.pre.outputs.matrix) }}
63+
matrix: ${{ fromJson(needs.prepare.outputs.matrix) }}
6364
# max-parallel: 5
6465
# The matrix testing goal is to cover the *most likely* environments
6566
# which are expected to be used by users in production. Avoid adding a

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ envlist =
99
schemas
1010
py
1111
py-devel
12+
pre
1213
eco
1314
isolated_build = true
1415
skip_missing_interpreters = True
@@ -20,6 +21,7 @@ requires =
2021
description =
2122
Run the tests under {basepython} and
2223
devel: ansible devel branch
24+
pre: Enables --pre when installing dependencies, testing prereleases
2325
deps =
2426
devel: ansible-core @ git+https://github.com/ansible/ansible.git # GPLv3+
2527
devel: ansible-compat @ git+https://github.com/ansible/ansible-compat.git # GPLv3+
@@ -29,6 +31,7 @@ commands_pre =
2931
sh -c "rm -f .tox/.coverage.* 2>/dev/null || true"
3032
bash ./tools/install-reqs.sh
3133
commands =
34+
ansible --version
3235
# safety measure to assure we do not accidentally run tests with broken dependencies
3336
{envpython} -m pip check
3437
coverage run -m pytest {posargs:\
@@ -63,10 +66,11 @@ setenv =
6366
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
6467
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
6568
PIP_CONSTRAINT = {toxinidir}/.config/requirements.txt
66-
devel,pkg: PIP_CONSTRAINT = /dev/null
69+
devel,pkg,pre: PIP_CONSTRAINT = /dev/null
6770
PIP_DISABLE_PIP_VERSION_CHECK = 1
6871
PRE_COMMIT_COLOR = always
6972
FORCE_COLOR = 1
73+
pre: PIP_PRE = 1
7074
allowlist_externals =
7175
bash
7276
find

0 commit comments

Comments
 (0)