macOS Nightly Build #186
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: macOS Nightly Build | |
| on: | |
| schedule: | |
| # Run at 3:00 AM UTC every day (5:00 AM CEST / 4:00 AM CET) | |
| - cron: "0 3 * * *" | |
| workflow_dispatch: | |
| inputs: | |
| skip_its: | |
| description: "Skip integration tests" | |
| required: false | |
| default: false | |
| type: boolean | |
| # Only allow one instance of this workflow to run at a time | |
| env: | |
| MISE_EXPERIMENTAL: "1" | |
| MISE_PYTHON_GITHUB_ATTESTATIONS: "false" | |
| POETRY_CACHE_DIR: ${{ github.workspace }}/.cache/pypoetry | |
| POETRY_VIRTUALENVS_PATH: ${{ github.workspace }}/.cache/pypoetry/virtualenvs | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| qa-macos: | |
| name: "Test macOS Python ${{ matrix.python-version }}" | |
| runs-on: macos-latest-xlarge | |
| permissions: | |
| id-token: write | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9.18", "3.10.13", "3.11.7", "3.12.1", "3.13.2"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Cloudflare WARP | |
| uses: SonarSource/gh-action_setup-cloudflare-warp@v1 | |
| - name: Install mise and tools | |
| uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 | |
| with: | |
| version: 2026.5.9 | |
| tool_versions: | | |
| python ${{ matrix.python-version }} | |
| experimental: true | |
| - name: Configure poetry | |
| uses: SonarSource/ci-github-actions/config-poetry@v1 | |
| with: | |
| artifactory-reader-role: private-reader | |
| - name: Install dependencies | |
| run: poetry install | |
| - name: Execute the test suite | |
| run: poetry run pytest tests/ | |
| its-macos: | |
| name: "macOS Integration Tests" | |
| runs-on: macos-latest-xlarge | |
| if: ${{ !inputs.skip_its }} | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| SONARQUBE_VERSION: 25.3.0.104237 | |
| SKIP_DOCKER: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Cloudflare WARP | |
| uses: SonarSource/gh-action_setup-cloudflare-warp@v1 | |
| - name: Cache SonarQube | |
| uses: SonarSource/gh-action_cache@v1 | |
| id: sonarqube-cache | |
| with: | |
| path: sonarqube_cache/ | |
| key: sonarqube-macos-${{ env.SONARQUBE_VERSION }} | |
| restore-keys: sonarqube-macos- | |
| - name: Download SonarQube | |
| if: ${{ !steps.sonarqube-cache.outputs.cache-hit }} | |
| run: | | |
| mkdir -p sonarqube_cache | |
| if [ ! -f sonarqube_cache/sonarqube.zip ]; then | |
| wget -q https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-$SONARQUBE_VERSION.zip -O sonarqube_cache/sonarqube.zip | |
| fi | |
| - name: Install mise and tools | |
| uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 | |
| with: | |
| version: 2026.5.9 | |
| tool_versions: | | |
| python 3.12.1 | |
| experimental: true | |
| - name: Configure poetry | |
| uses: SonarSource/ci-github-actions/config-poetry@v1 | |
| with: | |
| artifactory-reader-role: private-reader | |
| - name: Execute the integration tests | |
| run: ./.github/scripts/run_its.sh |