-
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.
switch CI to use Github Actions for simplicity
- Loading branch information
1 parent
ba9b037
commit c7a1edd
Showing
5 changed files
with
62 additions
and
131 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- staging | ||
- trying | ||
jobs: | ||
test: | ||
timeout-minutes: 30 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
- os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Miniconda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.7 | ||
|
||
- name: Set up Julia | ||
uses: julia-actions/[email protected] | ||
with: | ||
version: 1.4 | ||
|
||
- name: Install Julia Project Packages | ||
run: | | ||
julia --project=@. -e 'using Pkg; Pkg.instantiate()' | ||
julia --project=@. -e 'using Pkg; Pkg.precompile()' | ||
- name: Run Unit Tests | ||
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() |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
status = [ | ||
"dockerci (1.4, ubuntu-latest)", | ||
"test (ubuntu-latest)', | ||
'test (windows-latest)', | ||
'test (macos-latest'), | ||
] | ||
delete_merged_branches = true | ||
timeout_sec = 86400 | ||
block_labels = [ "do-not-merge-yet" ] | ||
timeout_sec = 3600 | ||
block_labels = [ "do-not-merge-yet" ] |