-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
48: Switch to Github Action docker-based CI r=charleskawczynski a=charleskawczynski Since we've been having build/environment issues, I thought it might be worth giving a docker-based CI a try. The way this works is: - CI is now controlled by a Github Action - The GHA checks out the PR/master and builds a docker image on top of the Julia docker image - The docker image is then used to run the tests The hope is that this will stabilize the build environment since everything is built from docker, which should be a clean slate each build, rather than runners whose environments potentially change (which was the case for the last failure on Travis). This also removes a handful of deps and source code, but we'll add these back in incrementally. Co-authored-by: Charles Kawczynski <[email protected]>
- Loading branch information
Showing
11 changed files
with
95 additions
and
935 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: DockerCI | ||
|
||
on: | ||
push: | ||
branches: [ master, staging, trying ] | ||
pull_request: | ||
branches: [ master, staging, trying ] | ||
|
||
jobs: | ||
dockerci: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
julia-version: [1.3, 1.4] | ||
os: [ubuntu-latest] | ||
python: [ '3.x' ] | ||
project: ['CalibrateEmulateSample'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build and test | ||
run: | | ||
docker build . --file Dockerfile --tag ces:PR | ||
docker images | ||
docker run ces:PR | ||
- name: "Generate coverage" | ||
env: | ||
JULIA_PROJECT: "@." | ||
run: julia --project=@. -e 'using Pkg; | ||
cd(Pkg.dir("CalibrateEmulateSample")); | ||
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() | ||
|
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.