PR: Allow to disable/enable plugins on the fly #16490
Workflow file for this run
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: Mac tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 6.* | |
| paths: | |
| - '.github/scripts/install.sh' | |
| - '.github/scripts/run_tests.sh' | |
| - '.github/workflows/test-mac.yml' | |
| - 'requirements/*.yml' | |
| - 'MANIFEST.in' | |
| - '**.bat' | |
| - '**.py' | |
| - '**.sh' | |
| - '!installers-conda/**' | |
| pull_request: | |
| branches: | |
| - master | |
| - 6.* | |
| paths: | |
| - '.github/scripts/install.sh' | |
| - '.github/scripts/run_tests.sh' | |
| - '.github/workflows/test-mac.yml' | |
| - 'requirements/*.yml' | |
| - 'MANIFEST.in' | |
| - '**.bat' | |
| - '**.py' | |
| - '**.sh' | |
| - '!installers-conda/**' | |
| workflow_call: | |
| workflow_dispatch: | |
| inputs: | |
| ssh: | |
| # github_cli: gh workflow run test-mac.yml --ref <branch> -f ssh=true | |
| description: 'Enable ssh debugging' | |
| required: false | |
| default: false | |
| type: boolean | |
| concurrency: | |
| group: test-mac-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| ENABLE_SSH: ${{ github.event_name == 'workflow_dispatch' && inputs.ssh }} | |
| jobs: | |
| build: | |
| # Use this to disable the workflow | |
| # if: false | |
| name: Mac - Py${{ matrix.PYTHON_VERSION }}, ${{ matrix.INSTALL_TYPE }}, ${{ matrix.TEST_TYPE }} | |
| runs-on: macos-14 | |
| env: | |
| CI: 'true' | |
| QTCONSOLE_TESTING: 'true' | |
| CODECOV_TOKEN: "56731c25-9b1f-4340-8b58-35739bfbc52d" | |
| OS: 'macos' | |
| PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | |
| RUN_SLOW: ${{ matrix.TEST_TYPE == 'slow' }} | |
| USE_CONDA: ${{ matrix.INSTALL_TYPE == 'conda' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| INSTALL_TYPE: ['conda'] | |
| PYTHON_VERSION: ['3.13'] | |
| TEST_TYPE: ['fast', 'slow'] | |
| timeout-minutes: 90 | |
| steps: | |
| - name: Setup Remote SSH Connection | |
| if: env.ENABLE_SSH == 'true' | |
| uses: mxschmitt/action-tmate@v3 | |
| timeout-minutes: 60 | |
| with: | |
| detached: true | |
| - name: Checkout Pull Requests | |
| if: github.event_name == 'pull_request' | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Checkout Push | |
| if: github.event_name != 'pull_request' | |
| uses: actions/checkout@v6 | |
| - name: Fetch branches | |
| run: git fetch --prune --unshallow | |
| - name: Cache conda | |
| uses: actions/cache@v5 | |
| env: | |
| # Increase this value to reset cache if requirements/*.txt has not changed | |
| CACHE_NUMBER: 0 | |
| with: | |
| path: ~/conda_pkgs_dir | |
| key: ${{ runner.os }}-cacheconda-install${{ matrix.INSTALL_TYPE }}-${{ matrix.PYTHON_VERSION }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements/*.yml') }} | |
| - name: Cache pip | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/Library/Caches/pip | |
| key: ${{ runner.os }}-cachepip-install${{ matrix.INSTALL_TYPE }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('setup.py') }} | |
| - name: Install Miniconda | |
| uses: conda-incubator/setup-miniconda@v4 | |
| with: | |
| conda-remove-defaults: "true" | |
| python-version: ${{ matrix.PYTHON_VERSION }} | |
| miniconda-version: "latest" | |
| channels: conda-forge | |
| - name: Create conda test environment | |
| uses: mamba-org/setup-micromamba@v3 | |
| with: | |
| micromamba-version: '1.5.10-0' | |
| environment-file: requirements/main.yml | |
| environment-name: test | |
| cache-downloads: true | |
| create-args: python=${{ matrix.PYTHON_VERSION }} | |
| - name: Install Pixi | |
| uses: prefix-dev/setup-pixi@v0.9.6 | |
| with: | |
| run-install: false | |
| - name: Create environment with Pixi | |
| shell: bash -l {0} | |
| run: pixi global install pip --expose pip-for-testing=pip | |
| - name: Install additional dependencies | |
| shell: bash -l {0} | |
| run: bash -l .github/scripts/install.sh | |
| - name: Show test environment | |
| shell: bash -l {0} | |
| run: | | |
| micromamba info | |
| micromamba list | |
| - name: Run manifest checks | |
| shell: bash -l {0} | |
| run: check-manifest | |
| - name: Run tests | |
| shell: bash -l {0} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| rm -f pytest_log.txt # Must remove any log file from a previous run | |
| .github/scripts/run_tests.sh -n 0 || \ | |
| .github/scripts/run_tests.sh -n 1 || \ | |
| .github/scripts/run_tests.sh -n 2 || \ | |
| .github/scripts/run_tests.sh -n 3 || \ | |
| .github/scripts/run_tests.sh -n 4 || \ | |
| .github/scripts/run_tests.sh -n 5 || \ | |
| .github/scripts/run_tests.sh -n 6 || \ | |
| .github/scripts/run_tests.sh -n 7 || \ | |
| .github/scripts/run_tests.sh -n 8 || \ | |
| .github/scripts/run_tests.sh -n 9 || \ | |
| .github/scripts/run_tests.sh -n 10 || \ | |
| .github/scripts/run_tests.sh -n 11 || \ | |
| .github/scripts/run_tests.sh -n 12 || \ | |
| .github/scripts/run_tests.sh -n 13 || \ | |
| .github/scripts/run_tests.sh -n 14 | |
| - name: Coverage | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| fail_ci_if_error: false | |
| verbose: true |