This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run subset on every push in parallel * Kill jobs that fail quickly * Kill stale jobs quickly upon new commits to a branch * Run all OS unit tests only on bors try / bors merge * Remove Azure Devops Pipelines
- Loading branch information
1 parent
4a07b42
commit c69ff9f
Showing
17 changed files
with
158 additions
and
154 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,15 @@ on: | |
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-16.04 | ||
strategy: | ||
matrix: | ||
julia-version: ['1.4'] | ||
project: ['ClimateMachine.jl'] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@v1 | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Julia | ||
uses: julia-actions/[email protected] | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
version: 1.4 | ||
|
||
- name: Test with coverage | ||
env: | ||
|
@@ -35,8 +32,9 @@ jobs: | |
using Coverage; | ||
LCOV.writefile("coverage-lcov.info", Codecov.process_folder())' | ||
if: success() | ||
|
||
- name: Submit coverage | ||
uses: codecov/[email protected].2 | ||
uses: codecov/[email protected].7 | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
if: success() | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,14 @@ on: | |
jobs: | ||
docs-build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@latest | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/[email protected] | ||
- uses: julia-actions/[email protected] | ||
with: | ||
version: 1.4 | ||
- name: Install dependencies | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,17 @@ on: | |
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch origin | ||
- uses: julia-actions/setup-julia@latest | ||
- uses: julia-actions/setup-julia@v1.1.6 | ||
with: | ||
version: 1.4 | ||
- name: Apply JuliaFormatter | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
test-modules: ["Arrays,Atmos,Common,Diagnostics,Driver,InputOutput,Utilities", | ||
"Numerics/DGMethods", | ||
"Numerics/Mesh", | ||
"Numerics/ODESolvers", | ||
"Numerics/SystemSolvers", | ||
"Ocean"] | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Julia | ||
uses: julia-actions/[email protected] | ||
with: | ||
version: 1.4 | ||
|
||
- name: Install Project Packages | ||
run: | | ||
julia --project=@. -e 'using Pkg; Pkg.instantiate(); Pkg.build()' | ||
- name: Run Unit Tests | ||
env: | ||
TEST_MODULES: ${{ matrix.test-modules }} | ||
run: | | ||
julia --project=@. -e 'using Pkg; Pkg.test(test_args=map(String, split(ENV["TEST_MODULES"], ",")))' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: OS Unit Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
- trying | ||
|
||
jobs: | ||
test-os: | ||
timeout-minutes: 120 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Julia | ||
uses: julia-actions/[email protected] | ||
with: | ||
version: 1.4 | ||
|
||
- name: Install Project Packages | ||
run: | | ||
julia --project=@. -e 'using Pkg; Pkg.instantiate(); Pkg.build()' | ||
- name: Build System Image | ||
run: | | ||
julia --project=@. .dev/systemimage/climate_machine_image.jl ClimateMachine.so true | ||
- name: Run Unit Tests | ||
run: | | ||
julia --project=@. -J ClimateMachine.so -e 'using Pkg; Pkg.test()' |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.