diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index dd821e68..1112c204 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -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: diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index d77d3a0c..eb6c8610 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 926b036c..db90ab67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 }} \ No newline at end of file diff --git a/Project.toml b/Project.toml index 3d564e18..2d696a3b 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/doc/Project.toml b/doc/Project.toml index 22bbcb7d..db344c7c 100644 --- a/doc/Project.toml +++ b/doc/Project.toml @@ -4,4 +4,4 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" RDatasets = "ce6b1742-4840-55fa-b093-852dadbb1d8b" [compat] -Documenter = "~0.22" +Documenter = ">= 0.22" diff --git a/doc/source/hclust.md b/doc/source/hclust.md index f42a1839..b7fa2c92 100644 --- a/doc/source/hclust.md +++ b/doc/source/hclust.md @@ -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) diff --git a/doc/source/kmeans.md b/doc/source/kmeans.md index 1661a136..79aa2ebb 100644 --- a/doc/source/kmeans.md +++ b/doc/source/kmeans.md @@ -27,7 +27,7 @@ kmeans! ## Examples -```@example julia +```@example using Clustering # make a random dataset with 1000 random 5-dimensional points @@ -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