From c4c3a89dca48e66992b08f1f4744bb892566f6c5 Mon Sep 17 00:00:00 2001 From: Michael Kraus Date: Tue, 3 Dec 2024 10:59:19 +0100 Subject: [PATCH] Update CI workflow. --- .github/workflows/CI.yml | 51 +++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 733bab8..62e5c8c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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