Skip to content

Commit a7f398a

Browse files
authored
Update workflow files, fix typo (#14)
This modernizes the workflow files, and streamlines the testing (for a simple package that doesn't seem hardware-specific, I don't think there's a strong reason to test on so many platforms). I added Documenter keys specifically for TagBot. Also fixes typo noticed in #12 (comment).
1 parent 9136dca commit a7f398a

File tree

4 files changed

+93
-31
lines changed

4 files changed

+93
-31
lines changed

.github/workflows/CI.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags: ['*']
7+
pull_request:
8+
concurrency:
9+
# Skip intermediate builds: always.
10+
# Cancel intermediate builds: only if it is a pull request build.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
jobs:
14+
test:
15+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
version:
21+
- '1.0'
22+
- '1'
23+
os:
24+
- ubuntu-latest
25+
arch:
26+
- x64
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: julia-actions/setup-julia@v1
30+
with:
31+
version: ${{ matrix.version }}
32+
arch: ${{ matrix.arch }}
33+
- uses: julia-actions/cache@v1
34+
- uses: julia-actions/julia-buildpkg@v1
35+
- uses: julia-actions/julia-runtest@v1
36+
- uses: julia-actions/julia-processcoverage@v1
37+
- uses: codecov/codecov-action@v2
38+
with:
39+
files: lcov.info
40+
# docs:
41+
# name: Documentation
42+
# runs-on: ubuntu-latest
43+
# permissions:
44+
# contents: write
45+
# statuses: write
46+
# steps:
47+
# - uses: actions/checkout@v2
48+
# - uses: julia-actions/setup-julia@v1
49+
# with:
50+
# version: '1'
51+
# - uses: julia-actions/julia-buildpkg@v1
52+
# - uses: julia-actions/julia-docdeploy@v1
53+
# env:
54+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
# - run: |
56+
# julia --project=docs -e '
57+
# using Documenter: DocMeta, doctest
58+
# using BlobParametrization
59+
# DocMeta.setdocmeta!(BlobParametrization, :DocTestSetup, :(using BlobParametrization); recursive=true)
60+
# doctest(BlobParametrization)'

.github/workflows/TagBot.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: 3
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
23+
jobs:
24+
TagBot:
25+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: JuliaRegistries/TagBot@v1
29+
with:
30+
token: ${{ secrets.GITHUB_TOKEN }}
31+
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
32+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/tests.yml

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

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ end
5252
@test fa isa ReadOnlyArray{Float64,2}
5353
@test fa == x
5454

55-
a = ReadOnly([1, 2])
55+
a = ReadOnlyArray([1, 2])
5656
@test typeof(similar(a)) === Vector{Int64}
5757

5858
@test copy(a) == [1, 2]

0 commit comments

Comments
 (0)