Skip to content

Commit 04b0705

Browse files
authored
Merge pull request #245 from JuliaStats/ast/update_ci
update CI scripts and Documenter.jl
2 parents bfdd686 + 0363fe1 commit 04b0705

File tree

7 files changed

+39
-29
lines changed

7 files changed

+39
-29
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
5-
- cron: '00 00 * * *'
6-
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
79
jobs:
810
CompatHelper:
911
runs-on: ubuntu-latest
1012
steps:
11-
- uses: julia-actions/setup-julia@latest
13+
- name: Install Julia, but only if it is not already available in the PATH
14+
uses: julia-actions/setup-julia@v1
1215
with:
13-
version: 1.3
14-
- name: Pkg.add("CompatHelper")
16+
version: 1
17+
- name: "Install CompatHelper"
1518
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
1619
- name: CompatHelper.main()
1720
env:

.github/workflows/TagBot.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 * * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: 3
10+
permissions:
11+
contents: write
512
jobs:
613
TagBot:
14+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
715
runs-on: ubuntu-latest
816
steps:
917
- uses: JuliaRegistries/TagBot@v1

.github/workflows/ci.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
push:
77
branches:
88
- master
9+
- release-*
10+
- runci/*
911
tags: '*'
1012
jobs:
1113
test:
12-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
14+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
1315
runs-on: ${{ matrix.os }}
1416
continue-on-error: ${{ matrix.version == 'nightly' }}
1517
strategy:
@@ -34,41 +36,36 @@ jobs:
3436
version: '1'
3537
arch: x64
3638
steps:
37-
- uses: actions/checkout@v2
39+
- uses: actions/checkout@v3
3840
- uses: julia-actions/setup-julia@v1
3941
with:
4042
version: ${{ matrix.version }}
4143
arch: ${{ matrix.arch }}
42-
- uses: actions/cache@v1
43-
env:
44-
cache-name: cache-artifacts
45-
with:
46-
path: ~/.julia/artifacts
47-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
48-
restore-keys: |
49-
${{ runner.os }}-test-${{ env.cache-name }}-
50-
${{ runner.os }}-test-
51-
${{ runner.os }}-
44+
show-versioninfo: true
45+
- uses: julia-actions/cache@v1
5246
- uses: julia-actions/julia-buildpkg@v1
5347
- uses: julia-actions/julia-runtest@v1
5448
- uses: julia-actions/julia-processcoverage@v1
55-
- uses: codecov/codecov-action@v1
49+
- uses: codecov/codecov-action@v3
5650
with:
5751
file: lcov.info
5852
docs:
5953
name: Documentation
6054
runs-on: ubuntu-latest
6155
steps:
62-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v3
6357
- uses: julia-actions/setup-julia@v1
6458
with:
6559
version: '1'
66-
- run: |
60+
- uses: julia-actions/cache@v1
61+
- name: Install dependencies
62+
run: |
6763
julia --project=doc -e '
6864
using Pkg
6965
Pkg.develop(PackageSpec(path=pwd()))
7066
Pkg.instantiate()'
71-
- run: julia --project=doc doc/make.jl
67+
- name: Build the manual
68+
run: julia --color=yes --project=doc/ doc/make.jl
7269
env:
7370
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7471
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Clustering"
22
uuid = "aaaa29a8-35af-508c-8bc3-b662a17a0fe5"
3-
version = "0.14.3"
3+
version = "0.14.4"
44

55
[deps]
66
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"

doc/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
44
RDatasets = "ce6b1742-4840-55fa-b093-852dadbb1d8b"
55

66
[compat]
7-
Documenter = "~0.22"
7+
Documenter = ">= 0.22"

doc/source/hclust.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ hclust
1212
Hclust
1313
```
1414

15-
```@example Single-linkage clustering using distance matrix
15+
Single-linkage clustering using distance matrix:
16+
```@example
1617
using Clustering
1718
D = rand(1000, 1000);
1819
D += D'; # symmetric distance matrix (optional)

doc/source/kmeans.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ kmeans!
2727

2828
## Examples
2929

30-
```@example julia
30+
```@example
3131
using Clustering
3232
3333
# make a random dataset with 1000 random 5-dimensional points
@@ -43,7 +43,8 @@ c = counts(R) # get the cluster sizes
4343
M = R.centers # get the cluster centers
4444
```
4545

46-
```@example Scatter plot of the K-means clustering results
46+
Scatter plot of the K-means clustering results:
47+
```@example
4748
using RDatasets, Clustering, Plots
4849
iris = dataset("datasets", "iris"); # load the data
4950

0 commit comments

Comments
 (0)