Speed up test by disabling sanity and units tests

This commit is contained in:
Laurent Indermuehle 2022-10-25 09:44:16 +02:00
commit 7206c9295b
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -19,23 +19,23 @@ env:
connector_version_file: "tests/integration/targets/setup_mysql/vars/main.yml" connector_version_file: "tests/integration/targets/setup_mysql/vars/main.yml"
jobs: jobs:
sanity: # sanity:
name: "Sanity (Ansible: ${{ matrix.ansible }})" # name: "Sanity (Ansible: ${{ matrix.ansible }})"
runs-on: ubuntu-latest # runs-on: ubuntu-latest
strategy: # strategy:
matrix: # matrix:
ansible: # ansible:
- stable-2.11 # - stable-2.11
- stable-2.12 # - stable-2.12
- stable-2.13 # - stable-2.13
- stable-2.14 # - stable-2.14
- devel # - devel
steps: # steps:
- name: Perform sanity testing # - name: Perform sanity testing
uses: ansible-community/ansible-test-gh-action@release/v1 # uses: ansible-community/ansible-test-gh-action@release/v1
with: # with:
ansible-core-version: ${{ matrix.ansible }} # ansible-core-version: ${{ matrix.ansible }}
testing-type: sanity # testing-type: sanity
integration: integration:
name: "Integration (Python: ${{ matrix.python }}, Ansible: ${{ matrix.ansible }}, MySQL: ${{ matrix.db_engine_version }}, Connector: ${{ matrix.connector }})" name: "Integration (Python: ${{ matrix.python }}, Ansible: ${{ matrix.ansible }}, MySQL: ${{ matrix.db_engine_version }}, Connector: ${{ matrix.connector }})"
@ -117,41 +117,41 @@ jobs:
with: with:
limit-access-to-actor: true limit-access-to-actor: true
units: # units:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
name: Units (Ⓐ${{ matrix.ansible }}) # name: Units (Ⓐ${{ matrix.ansible }})
strategy: # strategy:
# As soon as the first unit test fails, # # As soon as the first unit test fails,
# cancel the others to free up the CI queue # # cancel the others to free up the CI queue
fail-fast: true # fail-fast: true
matrix: # matrix:
ansible: # ansible:
- stable-2.11 # - stable-2.11
- stable-2.12 # - stable-2.12
- stable-2.13 # - stable-2.13
- stable-2.14 # - stable-2.14
- devel # - devel
python: # python:
- 3.8 # - 3.8
- 3.9 # - 3.9
exclude: # exclude:
- python: 3.8 # - python: 3.8
ansible: stable-2.13 # ansible: stable-2.13
- python: 3.8 # - python: 3.8
ansible: stable-2.14 # ansible: stable-2.14
- python: 3.8 # - python: 3.8
ansible: devel # ansible: devel
- python: 3.9 # - python: 3.9
ansible: stable-2.11 # ansible: stable-2.11
- python: 3.9 # - python: 3.9
ansible: stable-2.12 # ansible: stable-2.12
steps: # steps:
- name: >- # - name: >-
Perform unit testing against # Perform unit testing against
Ansible version ${{ matrix.ansible }} # Ansible version ${{ matrix.ansible }}
uses: ansible-community/ansible-test-gh-action@release/v1 # uses: ansible-community/ansible-test-gh-action@release/v1
with: # with:
ansible-core-version: ${{ matrix.ansible }} # ansible-core-version: ${{ matrix.ansible }}
target-python-version: ${{ matrix.python }} # target-python-version: ${{ matrix.python }}
testing-type: units # testing-type: units