Skip to content

Commit

Permalink
Set up GitHub Actions for testing (#82)
Browse files Browse the repository at this point in the history
Co-authored-by: Dilum Aluthge <[email protected]>
  • Loading branch information
StefanKarpinski and DilumAluthge authored Dec 4, 2020
1 parent 74a2e67 commit f896545
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 31 deletions.
5 changes: 5 additions & 0 deletions .ci/change-uuid.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using UUIDs

project_filename = joinpath(dirname(@__DIR__), "Project.toml")

write("Project.toml", replace(read("Project.toml", String), r"uuid = .*?\n" =>"uuid = \"$(uuid4())\"\n"))
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI
on:
pull_request:
branches:
- master
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.3'
- '1' # automatically expands to the latest stable 1.x release of Julia.
- 'nightly'
os:
- ubuntu-latest
- macos-latest
- windows-latest
arch:
- x64
- x86
# 32-bit Julia binaries are not available on macOS
exclude:
- os: macOS-latest
arch: x86
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-${{ matrix.os }}
${{ runner.os }}-
- run: julia --color=yes .ci/change-uuid.jl
- 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
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

0 comments on commit f896545

Please sign in to comment.