Build and Test Julia Package #568
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: Build and Test Julia Package | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| jobs: | |
| test: | |
| name: runtests ${{ matrix.version }} - ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: | |
| - 'lts' # long-term support (currently 1.10) | |
| - '1.11' | |
| - '1.x' # latest (currently 1.12) | |
| os: | |
| - ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Julia | |
| uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: ${{ matrix.version }} | |
| - name: Cache Julia packages | |
| uses: julia-actions/cache@v2 | |
| - name: Build Julia packages | |
| uses: julia-actions/julia-buildpkg@v1 | |
| - name: Run tests | |
| uses: julia-actions/julia-runtest@v1 |