Merge pull request #124 from caian-org/chore/update-test-matrix #188
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| tags: | |
| - '*' | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| branches: | |
| - '*' | |
| paths-ignore: | |
| - '**.md' | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| include: | |
| # python 3.7 | |
| - python-version: '3.7' | |
| ansible-version: '2.10.7' | |
| - python-version: '3.7' | |
| ansible-version: '3.4.0' | |
| - python-version: '3.7' | |
| ansible-version: '4.10.0' | |
| # python 3.8 | |
| - python-version: '3.8' | |
| ansible-version: '3.4.0' | |
| - python-version: '3.8' | |
| ansible-version: '4.10.0' | |
| - python-version: '3.8' | |
| ansible-version: '5.4.0' | |
| - python-version: '3.8' | |
| ansible-version: '6.7.0' | |
| # python 3.9 | |
| - python-version: '3.9' | |
| ansible-version: '4.10.0' | |
| - python-version: '3.9' | |
| ansible-version: '5.4.0' | |
| - python-version: '3.9' | |
| ansible-version: '6.7.0' | |
| - python-version: '3.9' | |
| ansible-version: '7.7.0' | |
| # python 3.10 | |
| - python-version: '3.10' | |
| ansible-version: '6.7.0' | |
| - python-version: '3.10' | |
| ansible-version: '7.7.0' | |
| - python-version: '3.10' | |
| ansible-version: '8.7.0' | |
| - python-version: '3.10' | |
| ansible-version: '9.7.0' | |
| # python 3.11 | |
| - python-version: '3.11' | |
| ansible-version: '6.7.0' | |
| - python-version: '3.11' | |
| ansible-version: '7.7.0' | |
| - python-version: '3.11' | |
| ansible-version: '8.7.0' | |
| - python-version: '3.11' | |
| ansible-version: '9.7.0' | |
| # python 3.12 | |
| - python-version: '3.12' | |
| ansible-version: '6.7.0' | |
| - python-version: '3.12' | |
| ansible-version: '7.7.0' | |
| - python-version: '3.12' | |
| ansible-version: '8.7.0' | |
| - python-version: '3.12' | |
| ansible-version: '9.7.0' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install system dependencies | |
| run: sudo apt-get install -y figlet stow | |
| - name: Install ansible ${{ matrix.ansible-version }} | |
| run: | | |
| sudo apt-get purge --auto-remove ansible | |
| pip install "ansible==${{ matrix.ansible-version }}" --force-reinstall | |
| - name: Versions | |
| run: | | |
| ansible --version | |
| stow --version | |
| - name: Run tests | |
| run: | | |
| cd tests | |
| ./test.sh |