Skip to content

Commit

Permalink
Fix GitHub action configuration – continue-on-error (#1240)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer authored Jan 14, 2024
1 parent 11aa5ab commit 1b8732e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ matrix.libEnzyme }} libEnzyme - assertions=${{ matrix.assertions }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -118,24 +117,36 @@ jobs:
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
- name: Build libEnzyme
if: ${{ matrix.libEnzyme == 'local' && matrix.os != 'macOS-latest'}}
continue-on-error: ${{ matrix.version == 'nightly' }}
id: build_libenzyme
run: |
julia --project=deps -e 'using Pkg; Pkg.instantiate()'
julia --project=deps deps/build_local.jl
cp LocalPreferences.toml test/
- name: Build libEnzyme MacOS
if: ${{ matrix.libEnzyme == 'local' && matrix.os == 'macOS-latest'}}
continue-on-error: ${{ matrix.version == 'nightly' }}
id: build_libenzyme_mac
run: |
julia --project=deps -e 'using Pkg; Pkg.instantiate()'
SDKROOT=`xcrun --show-sdk-path` julia --project=deps deps/build_local.jl
cp LocalPreferences.toml test/
- uses: julia-actions/julia-buildpkg@v1
if: matrix.version != 'nightly' || steps.build_libenzyme.outcome == 'success' || steps.build_libenzyme_mac.outcome == 'success'
continue-on-error: ${{ matrix.version == 'nightly' }}
id: buildpkg
env:
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
- uses: julia-actions/julia-runtest@v1
if: matrix.version != 'nightly' || steps.buildpkg.outcome == 'success'
continue-on-error: ${{ matrix.version == 'nightly' }}
id: run_tests
env:
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
- uses: julia-actions/julia-processcoverage@v1
if: matrix.version != 'nightly' || steps.run_tests.outcome == 'success'
- uses: codecov/codecov-action@v1
if: matrix.version != 'nightly' || steps.run_tests.outcome == 'success'
with:
file: lcov.info
enzymetestutils:
Expand Down Expand Up @@ -174,21 +185,28 @@ jobs:
${{ runner.os }}-
- name: setup EnzymeTestUtils
shell: julia --color=yes {0}
id: setup_testutils
continue-on-error: ${{ matrix.version == 'nightly' }}
run: |
using Pkg
Pkg.develop([PackageSpec(; path) for path in (".", "lib/EnzymeCore")])
Pkg.instantiate()
env:
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
- name: Run the tests
if: matrix.version != 'nightly' || steps.setup_testutils.outcome == 'success'
continue-on-error: ${{ matrix.version == 'nightly' }}
id: run_tests
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.test("EnzymeTestUtils"; coverage=true)
- uses: julia-actions/julia-processcoverage@v1
if: matrix.version != 'nightly' || steps.run_tests.outcome == 'success'
with:
directories: lib/EnzymeTestUtils/src
- uses: codecov/codecov-action@v2
if: matrix.version != 'nightly' || steps.run_tests.outcome == 'success'
with:
files: lcov.info
docs:
Expand Down

0 comments on commit 1b8732e

Please sign in to comment.