Skip to content

Commit

Permalink
Merge pull request #246 from FluxML/ci
Browse files Browse the repository at this point in the history
github CI
  • Loading branch information
CarloLucibello authored Dec 11, 2020
2 parents 9fde2fd + e66a0f0 commit d130ba8
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 88 deletions.
92 changes: 92 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: CI
# env:
# JULIA_NUM_THREADS: 2
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.julia-threads }} thread(s) - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
env:
JULIA_NUM_THREADS: ${{ matrix.julia-threads }}
strategy:
fail-fast: false
matrix:
version:
- '1.3' # Replace this with the minimum Julia version that your package supports.
- '1' # automatically expands to the latest stable 1.x release of Julia
- 'nightly'
os:
- ubuntu-latest
# - macOS-latest
# - windows-latest
arch:
- x64
julia-threads:
- "1"

include:
- os: windows-latest
version: '1'
arch: x64
julia-threads: '1'
- os: macOS-latest
version: '1'
arch: x64
julia-threads: '1'
- os: ubuntu-latest
version: '1'
arch: x64
julia-threads: '2'

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
# `allow-failure` not available yet https://github.com/actions/toolkit/issues/399
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
- uses: julia-actions/julia-runtest@v1
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
- uses: codecov/codecov-action@v1
continue-on-error: ${{ matrix.version == 'nightly' }}
with:
file: lcov.info

# docs:
# name: Documentation
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: julia-actions/setup-julia@v1
# with:
# version: '1'
# - run: |
# julia --project=docs -e '
# using Pkg
# Pkg.develop(PackageSpec(path=pwd()))
# Pkg.instantiate()'
# - run: julia --project=docs docs/make.jl
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

47 changes: 0 additions & 47 deletions appveyor.yml

This file was deleted.

4 changes: 2 additions & 2 deletions test/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ conv_answer_dict = Dict(
end
end

if get(ENV, "NNLIB_TEST_FUZZING", "true") == "true"
if get(ENV, "NNLIB_TEST_FUZZING", "false") == "true"
# @info("Skipping Convolutional fuzzing tests, set NNLIB_TEST_FUZZING=true to run them")
@testset "fuzzing" begin
@info("Starting Convolutional fuzzing tests; this can take a few minutes...")
Expand Down Expand Up @@ -559,7 +559,7 @@ end
end


if get(ENV,"NNLIB_TEST_FUZZING","true") == "true"
if get(ENV,"NNLIB_TEST_FUZZING","false") == "true"
@testset "fuzzing" begin
@info("Starting Depthwise Convolutional fuzzing tests; this can take a few minutes...")
# Now that we're fairly certain things are working, let's fuzz things a little bit:
Expand Down

0 comments on commit d130ba8

Please sign in to comment.