Skip to content

Commit

Permalink
Merge pull request #43 from raddleverse/julia-pkgbutler-updates
Browse files Browse the repository at this point in the history
Julia Package Butler Updates
  • Loading branch information
davidanthoff authored Aug 26, 2022
2 parents 6e00151 + d6d7c5d commit c7d19a7
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/jlpkgbutler-ci-master-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Run CI on main

on:
push:
branches:
- main
- master
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.6', '1.7', '1.8']
julia-arch: [x64, x86]
os: [ubuntu-latest, windows-latest, macOS-latest]
exclude:
- os: macOS-latest
julia-arch: x86
- os: windows-latest
julia-arch: x86
- os: ubuntu-latest
julia-arch: x86

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/julia-buildpkg@v1
env:
PYTHON: ""
- uses: julia-actions/julia-runtest@v1
env:
PYTHON: ""
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v2
with:
files: ./lcov.info
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}

40 changes: 40 additions & 0 deletions .github/workflows/jlpkgbutler-ci-pr-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Run CI on PR

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.6', '1.7', '1.8']
julia-arch: [x64, x86]
os: [ubuntu-latest, windows-latest, macOS-latest]
exclude:
- os: macOS-latest
julia-arch: x86
- os: windows-latest
julia-arch: x86
- os: ubuntu-latest
julia-arch: x86

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/julia-buildpkg@v1
env:
PYTHON: ""
- uses: julia-actions/julia-runtest@v1
env:
PYTHON: ""
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v2
with:
files: ./lcov.info
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/jlpkgbutler-codeformat-pr-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Code Formatting

on:
push:
branches:
- main
- master
workflow_dispatch:

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/julia-codeformat@releases/v1
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Format files using DocumentFormat
title: '[AUTO] Format files using DocumentFormat'
body: '[DocumentFormat.jl](https://github.com/julia-vscode/DocumentFormat.jl) would suggest these formatting changes'
labels: no changelog
20 changes: 20 additions & 0 deletions .github/workflows/jlpkgbutler-compathelper-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run CompatHelper

on:
schedule:
- cron: '00 * * * *'
issues:
types: [opened, reopened]
workflow_dispatch:

jobs:
CompatHelper:
name: "Run CompatHelper.jl"
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 }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
17 changes: 17 additions & 0 deletions .github/workflows/jlpkgbutler-tagbot-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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.JLPKGBUTLER_TOKEN }}
branches: true

0 comments on commit c7d19a7

Please sign in to comment.