Skip to content

Commit

Permalink
Merge pull request #245 from JuliaStats/ast/update_ci
Browse files Browse the repository at this point in the history
update CI scripts and Documenter.jl
  • Loading branch information
alyst committed Mar 20, 2023
2 parents bfdd686 + 0363fe1 commit 04b0705
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 29 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: CompatHelper

on:
schedule:
- cron: '00 00 * * *'

- cron: 0 0 * * *
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
- name: Install Julia, but only if it is not already available in the PATH
uses: julia-actions/setup-julia@v1
with:
version: 1.3
- name: Pkg.add("CompatHelper")
version: 1
- name: "Install CompatHelper"
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
issue_comment:
types:
- created
workflow_dispatch:
inputs:
lookback:
default: 3
permissions:
contents: write
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
Expand Down
29 changes: 13 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
push:
branches:
- master
- release-*
- runci/*
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
Expand All @@ -34,41 +36,36 @@ jobs:
version: '1'
arch: x64
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- 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 }}-
show-versioninfo: true
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v3
with:
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- run: |
- uses: julia-actions/cache@v1
- name: Install dependencies
run: |
julia --project=doc -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: julia --project=doc doc/make.jl
- name: Build the manual
run: julia --color=yes --project=doc/ doc/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Clustering"
uuid = "aaaa29a8-35af-508c-8bc3-b662a17a0fe5"
version = "0.14.3"
version = "0.14.4"

[deps]
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
Expand Down
2 changes: 1 addition & 1 deletion doc/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
RDatasets = "ce6b1742-4840-55fa-b093-852dadbb1d8b"

[compat]
Documenter = "~0.22"
Documenter = ">= 0.22"
3 changes: 2 additions & 1 deletion doc/source/hclust.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ hclust
Hclust
```

```@example Single-linkage clustering using distance matrix
Single-linkage clustering using distance matrix:
```@example
using Clustering
D = rand(1000, 1000);
D += D'; # symmetric distance matrix (optional)
Expand Down
5 changes: 3 additions & 2 deletions doc/source/kmeans.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ kmeans!

## Examples

```@example julia
```@example
using Clustering
# make a random dataset with 1000 random 5-dimensional points
Expand All @@ -43,7 +43,8 @@ c = counts(R) # get the cluster sizes
M = R.centers # get the cluster centers
```

```@example Scatter plot of the K-means clustering results
Scatter plot of the K-means clustering results:
```@example
using RDatasets, Clustering, Plots
iris = dataset("datasets", "iris"); # load the data
Expand Down

2 comments on commit 04b0705

@alyst
Copy link
Member Author

@alyst alyst commented on 04b0705 Mar 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/79912

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.14.4 -m "<description of version>" 04b0705431bed0d174482b2e1db4dca1c9f26d32
git push origin v0.14.4

Please sign in to comment.