Skip to content

Commit

Permalink
Switch CI to use Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolewski committed Jun 20, 2020
1 parent ba9b037 commit c3decb9
Show file tree
Hide file tree
Showing 9 changed files with 148 additions and 147 deletions.
47 changes: 0 additions & 47 deletions .appveyor.yml

This file was deleted.

140 changes: 140 additions & 0 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
name: Tests

on:
pull_request:
push:
branches:
- staging
- trying
jobs:
test-linux:
timeout-minutes: 60
strategy:
fail-fast: true

runs-on: ubuntu-latest

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 Julia Project Packages
# we add this ENV varaible to force PyCall to download and use Conda rather than
# the system python (default on Linux), see the PyCall documentation
env:
PYTHON: ""
run: |
julia --project=@. -e 'using Pkg; Pkg.instantiate()'
- name: Install SciKitLearn Conda Package
env:
PYTHON: ""
run: |
julia --project=@. -e 'using Conda; Conda.add("scikit-learn")'
- name: Run Unit Tests
env:
PYTHON: ""
run: |
julia --project=@. -e 'using Pkg; Pkg.test(coverage=true)'
- name: Generate coverage file
run: |
julia --project=@. -e 'using Pkg; Pkg.add("Coverage");
using Coverage;
LCOV.writefile("coverage-lcov.info", Codecov.process_folder())'
if: success()

- name: Submit coverage
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
if: success()

test-macos:
timeout-minutes: 60
strategy:
fail-fast: true

runs-on: macos-latest

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 Julia Project Packages
env:
PYTHON: ""
run: |
julia --project=@. -e 'using Pkg; Pkg.instantiate()'
- name: Install SciKitLearn Conda Package
env:
PYTHON: ""
run: |
julia --project=@. -e 'using Conda; Conda.add("scikit-learn")'
- name: Run Unit Tests
env:
PYTHON: ""
run: |
LD_LIBRARY_PATH=$HOME/.julia/conda/3/lib julia --project=@. -e 'using Pkg; Pkg.test()'
test-windows:
timeout-minutes: 60
strategy:
fail-fast: true

runs-on: windows-latest

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 Julia Project Packages
env:
PYTHON: ""
run: |
julia --project=@. -e 'using Pkg; Pkg.instantiate()'
- name: Install SciKitLearn Conda Package
env:
PYTHON: ""
run: |
julia --project=@. -e 'using Conda; Conda.add(\"scikit-learn\")'
- name: Run Unit Tests
env:
PYTHON: ""
run: |
julia --project=@. -e 'using Pkg; Pkg.test()'
38 changes: 0 additions & 38 deletions .github/workflows/dockerci.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

6 changes: 0 additions & 6 deletions Dockerfile

This file was deleted.

3 changes: 2 additions & 1 deletion Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ uuid = "1d6d02ad-be62-4b6b-8a6d-2f90e265016e"
version = "0.1.2"

[[LibGit2]]
deps = ["Printf"]
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"

[[Libdl]]
Expand Down Expand Up @@ -657,7 +658,7 @@ uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
version = "1.0.5"

[[Pkg]]
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Test", "UUIDs"]
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[[PoissonRandom]]
Expand Down
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.1.0"

[deps]
Cloudy = "9e3b23bb-e7cc-4b94-886c-65de2234ba87"
Conda = "8f4d0f93-b110-5947-807f-2305c1781a2d"
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Expand Down
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@
[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg
[docs-dev-url]: https://CliMA.github.io/CalibrateEmulateSample.jl/dev/

[travis-img]: https://travis-ci.org/CliMA/CalibrateEmulateSample.jl.svg?branch=master
[travis-url]: https://travis-ci.org/CliMA/CalibrateEmulateSample.jl

[appveyor-img]: https://ci.appveyor.com/api/projects/status/c6eykd0w94pmyjt8/branch/master?svg=true
[appveyor-url]: https://ci.appveyor.com/project/climate-machine/calibrateemulatesample-jl/branch/master

[docker-ci-img]: https://github.com/CliMA/CalibrateEmulateSample.jl/workflows/DockerCI/badge.svg
[docker-ci-url]: https://github.com/CliMA/CalibrateEmulateSample.jl/actions

[codecov-img]: https://codecov.io/gh/CliMA/CalibrateEmulateSample.jl/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/CliMA/CalibrateEmulateSample.jl

Expand Down
8 changes: 5 additions & 3 deletions bors.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
status = [
"dockerci (1.4, ubuntu-latest)",
'test-linux',
'test-macos',
'test-windows'
]
delete_merged_branches = true
timeout_sec = 86400
block_labels = [ "do-not-merge-yet" ]
timeout_sec = 3600
block_labels = [ "do-not-merge-yet" ]

0 comments on commit c3decb9

Please sign in to comment.