Skip to content

Commit

Permalink
Switch to GitHub Actions (#37)
Browse files Browse the repository at this point in the history
* Switch to GitHub Actions for CI

* fix url on windows
  • Loading branch information
timholy authored Mar 2, 2021
1 parent 575538f commit 4b55f7a
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 18 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI
on:
pull_request:
push:
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.0'
- '1'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
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
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions test/readremote.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ using FileIO, ImageCore, Test, Statistics

workdir = joinpath(tempdir(), "ImagesNRRD")
isdir(workdir) || mkdir(workdir)
const teembase = "http://teem.sourceforge.net/nrrd/files"
const base3D = "http://www.tc18.org/code_data_set/3D_greyscale"
const teembase = "http://teem.sourceforge.net/nrrd/files/"
const base3D = "http://www.tc18.org/code_data_set/3D_greyscale/"

function getfile(name, base=teembase)
file = joinpath(workdir, name)
if !isfile(file)
file = download(joinpath(base, name), file)
file = download(base * name, file)
end
file
end
Expand Down

0 comments on commit 4b55f7a

Please sign in to comment.