Skip to content

Commit

Permalink
Switch to GitHub Actions for CI
Browse files Browse the repository at this point in the history
Also updates:
- TagBot workflow for triggers
- adds version-check on a test that no longer errors
  on Julia 1.7 (#39228)
  • Loading branch information
timholy committed Mar 31, 2021
1 parent 12eec81 commit b7ce382
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 58 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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.1
- 1.2
- 1.3
- 1.4
- 1.5
- 1.6
- 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
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 }}
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

41 changes: 0 additions & 41 deletions appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ end
# Support for positional `stop`
@test range(0, 5, length = 6) == 0.0:1.0:5.0
@test range(0, 10, step = 2) == 0:2:10
@test_throws ArgumentError range(0, 10)
Base.VERSION < v"1.7.0-DEV.445" && @test_throws ArgumentError range(0, 10)

mutable struct TLayout
x::Int8
Expand Down

0 comments on commit b7ce382

Please sign in to comment.