mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 15:11:28 -07:00
Refactor way tests info are passed from sed to file with lookup
The idea is to avoid modifying test targets from the workflow to prevent ansible-test to think every tests needs to be run.
This commit is contained in:
parent
9da866a7bf
commit
98ce2af28c
7 changed files with 35 additions and 22 deletions
7
.github/workflows/ansible-test-plugins.yml
vendored
7
.github/workflows/ansible-test-plugins.yml
vendored
|
@ -15,9 +15,6 @@ on:
|
|||
- cron: '0 6 * * *'
|
||||
|
||||
|
||||
env:
|
||||
config_file: "tests/integration/targets/setup_controller/defaults/main.yml"
|
||||
|
||||
jobs:
|
||||
# sanity:
|
||||
# name: "Sanity (Ansible: ${{ matrix.ansible }})"
|
||||
|
@ -128,9 +125,9 @@ jobs:
|
|||
ansible-core-version: ${{ matrix.ansible }}
|
||||
pre-test-cmd: >-
|
||||
>&2 echo Setting db_engine_version to ${{ matrix.db_engine_version }}...;
|
||||
sed -i 's/^db_engine_version:.*/db_engine_version: [${{ matrix.db_engine_version }}]/' ${{ env.config_file }}
|
||||
echo ${{ matrix.db_engine_version }} > tests/integration/db_engine_version
|
||||
>&2 echo Setting Connector version to ${{ matrix.connector }}...;
|
||||
sed -i 's/^python_packages:.*/python_packages: [${{ matrix.connector }}]/' ${{ env.config_file }}
|
||||
echo ${{ matrix.connector }} > tests/integration/connector
|
||||
target-python-version: ${{ matrix.python }}
|
||||
testing-type: integration
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue