| 1 | name: Macos tests |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | pull_request: |
| 8 | branches: |
| 9 | - master |
| 10 | |
| 11 | jobs: |
| 12 | macos-qt5: |
| 13 | name: Mac Py${{ matrix.PYTHON_VERSION }} - ${{ matrix.QT_BINDING }} - ${{ matrix.QT_BINDING_VERSION }} |
| 14 | timeout-minutes: 15 |
| 15 | runs-on: macos-15-intel |
| 16 | env: |
| 17 | CI: True |
| 18 | QT_API: ${{ matrix.QT_BINDING }} |
| 19 | PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} |
| 20 | RUNNER_OS: 'macos' |
| 21 | strategy: |
| 22 | fail-fast: false |
| 23 | matrix: |
| 24 | PYTHON_VERSION: ['3.7', '3.10'] |
| 25 | QT_BINDING: ['pyqt5', 'pyside2'] |
| 26 | include: |
| 27 | - QT_BINDING_VERSION: 'latest' |
| 28 | steps: |
| 29 | - name: Checkout branch |
| 30 | uses: actions/checkout@v1 |
| 31 | - name: Install Conda |
| 32 | uses: conda-incubator/setup-miniconda@v3 |
| 33 | with: |
| 34 | activate-environment: test |
| 35 | auto-update-conda: false |
| 36 | auto-activate: false |
| 37 | python-version: ${{ matrix.PYTHON_VERSION }} |
| 38 | channels: conda-forge |
| 39 | channel-priority: strict |
| 40 | conda-remove-defaults: true |
| 41 | - name: Install package dependencies |
| 42 | shell: bash -l {0} |
| 43 | run: conda env update --file requirements/environment_tests_${{ matrix.QT_BINDING }}_${{ matrix.QT_BINDING_VERSION }}.yml |
| 44 | - name: Install Package |
| 45 | shell: bash -l {0} |
| 46 | run: pip install -e . |
| 47 | - name: Show environment information |
| 48 | shell: bash -l {0} |
| 49 | run: | |
| 50 | conda info |
| 51 | conda list |
| 52 | - name: Run tests |
| 53 | shell: bash -l {0} |
| 54 | run: | |
| 55 | python example.py |
| 56 | pytest -x -vv --cov-report xml --cov=qtawesome qtawesome |
| 57 | - name: Upload coverage to Codecov |
| 58 | uses: codecov/codecov-action@v4 |
| 59 | with: |
| 60 | fail_ci_if_error: true |
| 61 | verbose: true |
| 62 | env: |
| 63 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 64 | |
| 65 | macos-qt6: |
| 66 | name: Mac Py${{ matrix.PYTHON_VERSION }} - ${{ matrix.QT_BINDING }} - ${{ matrix.QT_BINDING_VERSION }} |
| 67 | timeout-minutes: 15 |
| 68 | runs-on: macos-15-intel |
| 69 | env: |
| 70 | CI: True |
| 71 | QT_API: ${{ matrix.QT_BINDING }} |
| 72 | PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} |
| 73 | RUNNER_OS: 'macos' |
| 74 | strategy: |
| 75 | fail-fast: false |
| 76 | matrix: |
| 77 | PYTHON_VERSION: ['3.9', '3.13'] |
| 78 | QT_BINDING: ['pyqt6', 'pyside6'] |
| 79 | include: |
| 80 | - QT_BINDING_VERSION: 'latest' |
| 81 | steps: |
| 82 | - name: Checkout branch |
| 83 | uses: actions/checkout@v1 |
| 84 | - name: Install Conda |
| 85 | uses: conda-incubator/setup-miniconda@v3 |
| 86 | with: |
| 87 | activate-environment: test |
| 88 | auto-update-conda: false |
| 89 | auto-activate: false |
| 90 | python-version: ${{ matrix.PYTHON_VERSION }} |
| 91 | channels: conda-forge |
| 92 | channel-priority: strict |
| 93 | conda-remove-defaults: true |
| 94 | - name: Install package dependencies |
| 95 | shell: bash -l {0} |
| 96 | run: conda env update --file requirements/environment_tests_${{ matrix.QT_BINDING }}_${{ matrix.QT_BINDING_VERSION }}.yml |
| 97 | - name: Install Package |
| 98 | shell: bash -l {0} |
| 99 | run: pip install -e . |
| 100 | - name: Show environment information |
| 101 | shell: bash -l {0} |
| 102 | run: | |
| 103 | conda info |
| 104 | conda list |
| 105 | - name: Run tests |
| 106 | shell: bash -l {0} |
| 107 | run: | |
| 108 | python example.py |
| 109 | pytest -x -vv --cov-report xml --cov=qtawesome qtawesome |
| 110 | - name: Upload coverage to Codecov |
| 111 | uses: codecov/codecov-action@v4 |
| 112 | with: |
| 113 | fail_ci_if_error: true |
| 114 | verbose: true |
| 115 | env: |
| 116 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |