Skip to content

Commit

Permalink
combine GitHub Actions unit tests (#1538)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne authored Nov 9, 2023
1 parent ca89753 commit 546e102
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 66 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/OS-UnitTests.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@ on:

jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 80
strategy:
fail-fast: false
fail-fast: true
matrix:
julia-version: ['1.9']

env:
CLIMATEMACHINE_SETTINGS_FIX_RNG_SEED: "true"
include:
- os: ubuntu-latest
julia-version: '1.9'
- os: windows-latest
julia-version: '1.9'
- os: macos-latest
julia-version: '1.9'
- os: ubuntu-latest
julia-version: '~1.10.0-rc1'

runs-on: ${{ matrix.os }}

steps:
- name: Cancel Previous Runs
Expand All @@ -25,7 +31,8 @@ jobs:
uses: actions/[email protected]

- name: Set up Julia
uses: julia-actions/setup-julia@latest
uses: julia-actions/setup-julia@v1
if: steps.filter.outputs.run_test == 'true'
with:
version: ${{ matrix.julia-version }}

Expand All @@ -36,5 +43,6 @@ jobs:
uses: julia-actions/julia-buildpkg@v1

- name: Run Unit Tests
run: julia --project -e 'using Pkg; Pkg.test()'
continue-on-error: ${{ matrix.version == 'nightly' }}
uses: julia-actions/julia-runtest@v1
with:
annotate: true

0 comments on commit 546e102

Please sign in to comment.