Run tests #12
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: Run tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'AUTHORS.md' | |
| - 'CITATION.bib' | |
| - 'CONTRIBUTING.md' | |
| - 'LICENSE.md' | |
| - 'NEWS.md' | |
| - 'README.md' | |
| - '.github/workflows/CompatHelper.yml' | |
| - '.github/workflows/TagBot.yml' | |
| - '.gitignore' | |
| pull_request: | |
| paths-ignore: | |
| - 'AUTHORS.md' | |
| - 'CITATION.bib' | |
| - 'CONTRIBUTING.md' | |
| - 'LICENSE.md' | |
| - 'NEWS.md' | |
| - 'README.md' | |
| - '.github/workflows/CompatHelper.yml' | |
| - '.github/workflows/TagBot.yml' | |
| - '.gitignore' | |
| workflow_dispatch: | |
| inputs: | |
| debug_enabled: | |
| type: boolean | |
| description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | |
| required: false | |
| default: false | |
| # Cancel redundant CI tests automatically | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| julia-version: ['1.9', '1', 'nightly'] | |
| julia-arch: [x64, x86] | |
| os: [ubuntu-latest, windows-latest] | |
| include: | |
| - os: macos-latest | |
| julia-arch: default | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: ${{ matrix.julia-version }} | |
| arch: ${{ matrix.julia-arch }} | |
| - uses: julia-actions/julia-buildpkg@v1 | |
| - uses: julia-actions/julia-runtest@v1 | |
| # with: | |
| # annotate: true | |
| continue-on-error: true | |
| # Enable tmate debugging of manually-triggered workflows if the input option was provided | |
| - name: Setup tmate session | |
| uses: mxschmitt/action-tmate@v3 | |
| if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} |