Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unit-tests with CI Update #53

Merged
merged 2 commits into from
Jun 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/cancel-workflow-action@0.4.0
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v2.2.0

- name: Set up Julia
uses: julia-actions/setup-julia@v1.1.6
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/codecov-action@v1.0.7
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/cancel-workflow-action@0.4.0
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v2.2.0

- name: Set up Julia
uses: julia-actions/setup-julia@v1.1.6
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/cancel-workflow-action@0.4.0
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v2.2.0

- name: Set up Julia
uses: julia-actions/setup-julia@v1.1.6
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.

Loading