-
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.
53: Unit-tests with CI Update r=jakebolewski a=jakebolewski closes #31 Co-authored-by: Melanie Bieli <[email protected]> Co-authored-by: jakebolewski <[email protected]>
- Loading branch information
Showing
21 changed files
with
1,300 additions
and
225 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,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()' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.