Skip to content

Commit

Permalink
Update CI workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Dec 3, 2024
1 parent aa99d84 commit c4c3a89
Showing 1 changed file with 35 additions and 16 deletions.
51 changes: 35 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,58 @@
name: CI
on:
- push
- pull_request
push:
branches:
- main
tags: ['*']
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
version:
- '1.4'
- '1.5'
- 'nightly'
- '1.10'
- '^1.11.0-0'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
experimental: [false]
include:
- version: 'nightly'
os: ubuntu-latest
arch: x64
experimental: true
- version: 'nightly'
os: macOS-latest
arch: x64
experimental: true
- version: 'nightly'
os: windows-latest
arch: x64
experimental: true
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: Set environment variables
run: echo "JULIA_NUM_THREADS=2" >> $GITHUB_ENV
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info

0 comments on commit c4c3a89

Please sign in to comment.