mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-04 05:04:23 -07:00
[PR #416/97318559 backport][stable-1] Fix ci python requirements (#418)
* :Fix ci python requirements (#416)
* Add matrix for python and ansible-core versions for sanity tests
* Add python 3.9 to integrations tests
* Add python 3.9 to unit tests
* Reformat sort by python version first
(cherry picked from commit 97318559e5
)
* Fix string to int comparison error 1292
* Fix assert expected changed value
* Cut assertion that is incorrect
With both connectors, and only in stable-1 apparently, the test is
always failed.
* Fix bool comparison
* Revert separated tests for both connectors
* Refactor test using connector.name variable
* Refactor filtering of tasks using connector's vars sets during setup
* Fix "command not found" and "database doesn't exists"
* Fix assertion by not running on failing connectors
* Fix missing package when using sha256_password with MySQL 8
This commit is contained in:
parent
41e7ce5aaa
commit
836a1ce048
17 changed files with 99 additions and 61 deletions
44
.github/workflows/ansible-test-plugins.yml
vendored
44
.github/workflows/ansible-test-plugins.yml
vendored
|
@ -29,6 +29,18 @@ jobs:
|
|||
- stable-2.12
|
||||
- stable-2.13
|
||||
- devel
|
||||
python:
|
||||
- 3.8
|
||||
- 3.9
|
||||
exclude:
|
||||
- python: 3.8
|
||||
ansible: stable-2.13
|
||||
- python: 3.8
|
||||
ansible: devel
|
||||
- python: 3.9
|
||||
ansible: stable-2.11
|
||||
- python: 3.9
|
||||
ansible: stable-2.12
|
||||
steps:
|
||||
|
||||
- name: Check out code
|
||||
|
@ -39,7 +51,7 @@ jobs:
|
|||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- name: Install ansible-base (${{ matrix.ansible }})
|
||||
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
|
||||
|
@ -64,6 +76,8 @@ jobs:
|
|||
- devel
|
||||
python:
|
||||
- 3.6
|
||||
- 3.8
|
||||
- 3.9
|
||||
connector:
|
||||
- pymysql==0.7.10
|
||||
- pymysql==0.9.3
|
||||
|
@ -71,14 +85,22 @@ jobs:
|
|||
exclude:
|
||||
- mysql: 8.0.22
|
||||
connector: pymysql==0.7.10
|
||||
- python: 3.8
|
||||
ansible: stable-2.11
|
||||
- python: 3.6
|
||||
ansible: stable-2.12
|
||||
- python: 3.6
|
||||
ansible: stable-2.13
|
||||
- python: 3.6
|
||||
ansible: devel
|
||||
- python: 3.8
|
||||
ansible: stable-2.11
|
||||
- python: 3.8
|
||||
ansible: stable-2.13
|
||||
- python: 3.8
|
||||
ansible: devel
|
||||
- python: 3.9
|
||||
ansible: stable-2.11
|
||||
- python: 3.9
|
||||
ansible: stable-2.12
|
||||
steps:
|
||||
|
||||
- name: Check out code
|
||||
|
@ -89,7 +111,7 @@ jobs:
|
|||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- name: Install ansible-base (${{ matrix.ansible }})
|
||||
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
|
||||
|
@ -125,6 +147,18 @@ jobs:
|
|||
- stable-2.12
|
||||
- stable-2.13
|
||||
- devel
|
||||
python:
|
||||
- 3.8
|
||||
- 3.9
|
||||
exclude:
|
||||
- python: 3.8
|
||||
ansible: stable-2.13
|
||||
- python: 3.8
|
||||
ansible: devel
|
||||
- python: 3.9
|
||||
ansible: stable-2.11
|
||||
- python: 3.9
|
||||
ansible: stable-2.12
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
|
@ -135,7 +169,7 @@ jobs:
|
|||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- name: Install ansible-base (${{matrix.ansible}})
|
||||
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue