Skip to content

Commit

Permalink
Replaced Travis CI and AppVeyor with GitHub Actions
Browse files Browse the repository at this point in the history
* Updated package from PkgTemplates template.
* Dropped Julia 0.7 support.
* Added testing on Julia 1.3 on GitLab CI.
* Dropped Coveralls coverage.
* Updated compat entries.
  • Loading branch information
stemann committed Nov 4, 2021
1 parent bc9a674 commit b6a0a1a
Show file tree
Hide file tree
Showing 12 changed files with 110 additions and 60 deletions.
32 changes: 0 additions & 32 deletions .appveyor.yml

This file was deleted.

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:
push:
branches:
- main
tags: '*'
pull_request:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
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.3'
- '1.6'
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@v2
with:
files: lcov.info
16 changes: 16 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CompatHelper
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
15 changes: 15 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: TagBot
on:
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: 14 additions & 0 deletions .github/workflows/register.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Register Package
on:
workflow_dispatch:
inputs:
version:
description: Version to register or component to bump
required: true
jobs:
register:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/RegisterAction@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
*.jl.cov
*.jl.*.cov
*.jl.cov
*.jl.mem
7 changes: 6 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
include:
- project: 'ihp/julia/julia-gitlab-ci-templates'
ref: v1.0.0
ref: v1.1.0
file: '/.gitlab-ci_template.yaml'

test:1.0:
extends:
- .julia:1.0
- .julia.test.basic

test:1.3:
extends:
- .julia:1.3
- .julia.test.basic

test:1.6:
extends:
- .julia:1.6
Expand Down
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
MIT License

Copyright (c) 2018 IHP Systems A/S

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ authors = ["IHP Systems R&D <[email protected]>"]
version = "0.4.0"

[compat]
julia = "1.0"
julia = "1"
ResourcePools = "0.1.0"

[deps]
ResourcePools = "16787047-0d73-522e-b8c7-4a818d739b35"
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Cameras

[![Build Status](https://travis-ci.com/IHPSystems/Cameras.jl.svg?branch=master)](https://travis-ci.com/IHPSystems/Cameras.jl)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/IHPSystems/Cameras.jl?svg=true)](https://ci.appveyor.com/project/IHPSystems/Cameras-jl)
[![Codecov](https://codecov.io/gh/IHPSystems/Cameras.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/IHPSystems/Cameras.jl)
[![Coveralls](https://coveralls.io/repos/github/IHPSystems/Cameras.jl/badge.svg?branch=master)](https://coveralls.io/github/IHPSystems/Cameras.jl?branch=master)
[![Build Status](https://github.com/IHPSystems/Cameras.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/IHPSystems/Cameras.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![Coverage](https://codecov.io/gh/IHPSystems/Cameras.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/IHPSystems/Cameras.jl)
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
1 change: 0 additions & 1 deletion REQUIRE

This file was deleted.

0 comments on commit b6a0a1a

Please sign in to comment.