Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

try switching to github CI #191

Merged
merged 5 commits into from
Dec 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
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:
- push
- pull_request
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.5'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
include:
- os: ubuntu-latest
prefix: xvfb-run

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
CI: true
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
with:
prefix: ${{ matrix.prefix }}
47 changes: 0 additions & 47 deletions .travis.yml

This file was deleted.

44 changes: 0 additions & 44 deletions appveyor.yml

This file was deleted.

4 changes: 3 additions & 1 deletion test/scenes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ using CoordinateTransformations
for x in range(-5, stop=5, step=2)
for y in range(-5, stop=5, step=2)
setobject!(vis["cat"][string(x)][string(y)], cat)
settransform!(vis["cat"][string(x)][string(y)], Translation(x, y, 0) ∘ LinearMap(RotZ(π)) ∘ LinearMap(RotX(π/2)))
settransform!(vis["cat"][string(x)][string(y)],
Translation(x, y, 0) ∘
LinearMap(RotZ(Float64(π))) ∘ LinearMap(RotX(π/2)))
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions test/visualizer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ end
@testset "cat" begin
mesh = load(cat_mesh_path)
setobject!(v[:cat], mesh)
settransform!(v[:cat], Translation(0, -1, 0) ∘ LinearMap(RotZ(π)) ∘ LinearMap(RotX(π/2)))
settransform!(v[:cat], Translation(0, -1, 0) ∘ LinearMap(RotZ(Float64(π))) ∘ LinearMap(RotX(π/2)))
end

@testset "cat_color" begin
mesh = load(cat_mesh_path)
color = RGBA{Float32}(0.5, 0.5, 0.5, 0.5)
setobject!(v[:cat_color], mesh,
MeshLambertMaterial(color=color))
settransform!(v[:cat_color], Translation(0, -2.0, 0) ∘ LinearMap(RotZ(π)) ∘ LinearMap(RotX(π/2)))
settransform!(v[:cat_color], Translation(0, -2.0, 0) ∘ LinearMap(RotZ(Float64(π))) ∘ LinearMap(RotX(π/2)))
end

@testset "mesh file geometries" begin
Expand Down