Version 0.2.2-dev #245
Workflow file for this run
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: ['*'] | |
paths-ignore: | |
- 'CITATION.bib' | |
- 'LICENSE.md' | |
- 'README.md' | |
- '.zenodo.json' | |
- '.github/workflows/CompatHelper.yml' | |
- '.github/workflows/SpellCheck.yml' | |
- '.github/workflows/TagBot.yml' | |
- 'docs/**' | |
pull_request: | |
paths-ignore: | |
- 'CITATION.bib' | |
- 'LICENSE.md' | |
- 'README.md' | |
- '.zenodo.json' | |
- '.github/workflows/CompatHelper.yml' | |
- '.github/workflows/SpellCheck.yml' | |
- '.github/workflows/TagBot.yml' | |
- 'docs/**' | |
workflow_dispatch: | |
concurrency: | |
# Skip intermediate builds: always. | |
# Cancel intermediate builds: only if it is a pull request build. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
test: | |
name: ${{ matrix.os }} - Julia ${{ matrix.version }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.10' | |
- '1.11' | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: ${{ matrix.version }} | |
- run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)' | |
- uses: julia-actions/cache@v2 | |
- uses: julia-actions/julia-buildpkg@v1 | |
- name: Run tests with OMP-based multithreading | |
uses: julia-actions/julia-runtest@v1 | |
env: | |
JULIA_NUM_THREADS: 1 | |
OMP_NUM_THREADS: 2 | |
- name: Run tests with Julia-based multithreading | |
# Test sometimes fails on macOS due to a small thread stack size. | |
if: ${{ matrix.os != 'macOS-latest' }} | |
uses: julia-actions/julia-runtest@v1 | |
env: | |
JULIA_NUM_THREADS: 2 | |
OMP_NUM_THREADS: 1 | |
- uses: julia-actions/julia-processcoverage@v1 | |
with: | |
directories: src,examples | |
- uses: codecov/codecov-action@v5 | |
with: | |
files: lcov.info | |
token: ${{ secrets.CODECOV_TOKEN }} | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./lcov.info | |
# Enable tmate debugging of manually-triggered workflows if the input option was provided | |
- name: Setup tmate session for debugging | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && always() }} | |
uses: mxschmitt/action-tmate@v3 | |
timeout-minutes: 15 |