mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 19:50:31 -07:00
Extend integration tests job matrix
This commit is contained in:
parent
0f86c8ed8d
commit
b8b7353ad9
1 changed files with 10 additions and 0 deletions
10
.github/workflows/ansible-test-plugins.yml
vendored
10
.github/workflows/ansible-test-plugins.yml
vendored
|
@ -16,6 +16,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
mysql_version_file: "./ansible_collections/community/mysql/tests/integration/targets/setup_mysql/defaults/main.yml"
|
mysql_version_file: "./ansible_collections/community/mysql/tests/integration/targets/setup_mysql/defaults/main.yml"
|
||||||
|
connector_version_file: "./ansible_collections/community/mysql/tests/integration/targets/setup_mysql/vars/main.yml"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sanity:
|
sanity:
|
||||||
|
@ -61,6 +62,12 @@ jobs:
|
||||||
- devel
|
- devel
|
||||||
python:
|
python:
|
||||||
- 3.6
|
- 3.6
|
||||||
|
connector:
|
||||||
|
- pymysql==0.9.3
|
||||||
|
- mysqlclient==2.0.1
|
||||||
|
include:
|
||||||
|
- mysql: 5.7.31
|
||||||
|
connector: pymysql==0.7.10
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
|
@ -79,6 +86,9 @@ jobs:
|
||||||
- name: Set MySQL version (${{ matrix.mysql }})
|
- name: Set MySQL version (${{ matrix.mysql }})
|
||||||
run: "sed -i 's/^mysql_version:.*/mysql_version: \"${{ matrix.mysql }}\"/g' ${{ env.mysql_version_file }}"
|
run: "sed -i 's/^mysql_version:.*/mysql_version: \"${{ matrix.mysql }}\"/g' ${{ env.mysql_version_file }}"
|
||||||
|
|
||||||
|
- name: Set Connector version (${{ matrix.connector }})
|
||||||
|
run: "sed -i 's/^python_packages:.*/python_packages: [${{ matrix.connector }}]/' ${{ env.connector_version_file }}"
|
||||||
|
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
run: ansible-test integration --docker -v --color --retry-on-error --continue-on-error --python ${{ matrix.python }} --diff --coverage
|
run: ansible-test integration --docker -v --color --retry-on-error --continue-on-error --python ${{ matrix.python }} --diff --coverage
|
||||||
working-directory: ./ansible_collections/community/mysql
|
working-directory: ./ansible_collections/community/mysql
|
||||||
|
|
Loading…
Add table
Reference in a new issue