Do not run same sanity tests twice (#36)

* Do not run same sanity tests twice.

* Fix test config.
This commit is contained in:
Felix Fontein 2020-09-28 07:21:04 +02:00 committed by GitHub
parent 94b383a6dc
commit 1538b9d946
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,12 +4,12 @@ on:
paths: paths:
- 'plugins/**' - 'plugins/**'
- 'tests/**' - 'tests/**'
- '.github/workflows/ansible-test.yml' - '.github/workflows/ansible-test-plugins.yml'
pull_request: pull_request:
paths: paths:
- 'plugins/**' - 'plugins/**'
- 'tests/**' - 'tests/**'
- '.github/workflows/ansible-test.yml' - '.github/workflows/ansible-test-plugins.yml'
schedule: schedule:
- cron: '0 6 * * *' - cron: '0 6 * * *'
@ -27,9 +27,6 @@ jobs:
- stable-2.9 - stable-2.9
- stable-2.10 - stable-2.10
- devel - devel
python:
- 2.7
- 3.8
steps: steps:
- name: Check out code - name: Check out code
@ -37,10 +34,10 @@ jobs:
with: with:
path: ansible_collections/community/mysql path: ansible_collections/community/mysql
- name: Set up Python ${{ matrix.python }} - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python }} python-version: 3.8
- name: Install ansible-base (${{ matrix.ansible }}) - name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
@ -71,10 +68,10 @@ jobs:
with: with:
path: ansible_collections/community/mysql path: ansible_collections/community/mysql
- name: Set up Python ${{ matrix.python }} - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python }} python-version: 3.8
- name: Install ansible-base (${{ matrix.ansible }}) - name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check