Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Switch CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Dec 14, 2020
1 parent a00742c commit 95cea3e
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 115 deletions.
28 changes: 28 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ steps:
- "apt-get install -y xvfb xauth"
- "xvfb-run julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

trigger:
branch:
- master

---
kind: pipeline
name: linux - arm64 - Julia 1.3
Expand All @@ -30,4 +34,28 @@ steps:
- "apt-get install -y xvfb xauth"
- "xvfb-run julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

trigger:
branch:
- master

---
kind: pipeline
name: linux - arm64 - Julia 1.5

platform:
os: linux
arch: arm64

steps:
- name: build
image: julia:1.5
commands:
- "apt-get update"
- "apt-get install -y xvfb xauth"
- "xvfb-run julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

trigger:
branch:
- master

...
8 changes: 6 additions & 2 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
82 changes: 82 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: CI

on:
push:
branches: "master"
tags: ["*"]
pull_request:
release:

jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version:
- "1.3"
- "1"
- "nightly"
os:
- ubuntu-latest
- macos-latest
- windows-latest
julia-arch:
- x64
- x86
include:
- os: ubuntu-latest
prefix: xvfb-run
# 32-bit Julia binaries are not available on macOS
exclude:
- os: macOS-latest
julia-arch: x86

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- name: Cache artifacts
uses: actions/cache@v2
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@latest
- uses: julia-actions/julia-runtest@prefix
with:
prefix: ${{ matrix.prefix }}
- uses: julia-actions/julia-uploadcodecov@v0.1
continue-on-error: true
- uses: julia-actions/julia-uploadcoveralls@v0.1
continue-on-error: true

Documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1
- name: Cache artifacts
uses: actions/cache@v2
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/docs/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-docdeploy@releases/v1
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
58 changes: 0 additions & 58 deletions .travis.yml

This file was deleted.

36 changes: 0 additions & 36 deletions appveyor.yml

This file was deleted.

3 changes: 1 addition & 2 deletions src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ function _guarded(ex, retval)
try
$(ex.args[2])
catch err
@warn("Error in @guarded callback")
Base.display_error(err, catch_backtrace())
@warn("Error in @guarded callback", exception=(err, catch_backtrace()))
$retval
end
end
Expand Down
9 changes: 2 additions & 7 deletions test/gui.jl
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,8 @@ end
Gtk.showall(win)
sleep(0.5)
mtrx = Gtk.Cairo.get_matrix(getgc(cnvs))
if get(ENV, "JULIA_PKGEVAL", "") == "true" || get(ENV, "CI", nothing) === nothing || !Sys.islinux()
@test mtrx.xx == 300
@test mtrx.yy == 280
else
@test_broken mtrx.xx == 300
@test_broken mtrx.yy == 280
end
@test mtrx.xx == 300
@test mtrx.yy == 280
@test mtrx.xy == mtrx.yx == mtrx.x0 == mtrx.y0 == 0
end

Expand Down
14 changes: 4 additions & 10 deletions test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,13 @@ end
x+y+k
end

printstyled("""
The following messages:
WARNING: Error in @guarded callback
are expected and a sign of normal operation.
""", color=:green)

@test foo1(3,5) == 8
@test bar1(3,5) == nothing
@test @test_logs (:warn, "Error in @guarded callback") bar1(3,5) == nothing
@test foo2(3,5) == 8
@test bar2(3,5) == nothing
@test @test_logs (:warn, "Error in @guarded callback") bar2(3,5) == nothing
@test foo3(3,5) == 8
@test bar3(3,5) == nothing
@test bar4(3,5) == unhandled
@test @test_logs (:warn, "Error in @guarded callback") bar3(3,5) == nothing
@test @test_logs (:warn, "Error in @guarded callback") bar4(3,5) == unhandled

# Do-block syntax
c = GtkCanvas()
Expand Down

0 comments on commit 95cea3e

Please sign in to comment.