Skip to content

Commit 37000b3

Browse files
authored
Switch to GitHub Actions for CI (#739)
Also updates: - TagBot workflow for triggers - adds version-check on a test that no longer errors on Julia 1.7 (#39228)
1 parent 12eec81 commit 37000b3

File tree

5 files changed

+58
-58
lines changed

5 files changed

+58
-58
lines changed

.github/workflows/CI.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
tags: '*'
8+
jobs:
9+
test:
10+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
version:
16+
- 1.0
17+
- 1.1
18+
- 1.2
19+
- 1.3
20+
- 1.4
21+
- 1.5
22+
- 1.6
23+
- nightly
24+
os:
25+
- ubuntu-latest
26+
- macOS-latest
27+
- windows-latest
28+
arch:
29+
- x64
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: julia-actions/setup-julia@v1
33+
with:
34+
version: ${{ matrix.version }}
35+
arch: ${{ matrix.arch }}
36+
- uses: actions/cache@v1
37+
env:
38+
cache-name: cache-artifacts
39+
with:
40+
path: ~/.julia/artifacts
41+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
42+
restore-keys: |
43+
${{ runner.os }}-test-${{ env.cache-name }}-
44+
${{ runner.os }}-test-
45+
${{ runner.os }}-
46+
- uses: julia-actions/julia-buildpkg@v1
47+
- uses: julia-actions/julia-runtest@v1
48+
- uses: julia-actions/julia-processcoverage@v1
49+
- uses: codecov/codecov-action@v1
50+
with:
51+
file: lcov.info

.github/workflows/TagBot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 * * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
57
jobs:
68
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
710
runs-on: ubuntu-latest
811
steps:
912
- uses: JuliaRegistries/TagBot@v1
1013
with:
1114
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ end
4141
# Support for positional `stop`
4242
@test range(0, 5, length = 6) == 0.0:1.0:5.0
4343
@test range(0, 10, step = 2) == 0:2:10
44-
@test_throws ArgumentError range(0, 10)
44+
Base.VERSION < v"1.7.0-DEV.445" && @test_throws ArgumentError range(0, 10)
4545

4646
mutable struct TLayout
4747
x::Int8

0 commit comments

Comments
 (0)