Skip to content

Commit ddab445

Browse files
committed
updated .github by removing .tic, added pkgdown, R-cmd-check, dependabot
1 parent 9767add commit ddab445

12 files changed

Lines changed: 132 additions & 149 deletions

File tree

.Rbuildignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
^.git$
22
^.github$
3-
^codecov.yml$
43
^\.ccache$
54
^\.github$
6-
^tic\.R$
5+
^_pkgdown\.yml$
6+
^docs$
7+
^pkgdown$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
# Monitor GitHub Actions (if you have any workflows)
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "monthly"
8+
open-pull-requests-limit: 5
9+
reviewers:
10+
- "mlampros"
11+
assignees:
12+
- "mlampros"
13+
labels:
14+
- "dependencies"
15+
- "github-actions"
16+
commit-message:
17+
prefix: "ci"
18+
include: "scope"

.github/workflows/R-CMD-check.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
name: R-CMD-check.yaml
9+
10+
permissions: read-all
11+
12+
jobs:
13+
R-CMD-check:
14+
runs-on: ${{ matrix.config.os }}
15+
16+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
config:
22+
- {os: macos-latest, r: 'release'}
23+
- {os: windows-latest, r: 'release'}
24+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25+
- {os: ubuntu-latest, r: 'release'}
26+
- {os: ubuntu-latest, r: 'oldrel-1'}
27+
28+
env:
29+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
30+
R_KEEP_PKG_SOURCE: yes
31+
32+
steps:
33+
- uses: actions/checkout@v5
34+
35+
- uses: r-lib/actions/setup-pandoc@v2
36+
37+
- uses: r-lib/actions/setup-r@v2
38+
with:
39+
r-version: ${{ matrix.config.r }}
40+
http-user-agent: ${{ matrix.config.http-user-agent }}
41+
use-public-rspm: true
42+
43+
- uses: r-lib/actions/setup-r-dependencies@v2
44+
with:
45+
extra-packages: any::rcmdcheck
46+
needs: check
47+
48+
- uses: r-lib/actions/check-r-package@v2
49+
with:
50+
upload-snapshots: true
51+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/pkgdown.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
14+
15+
jobs:
16+
pkgdown:
17+
runs-on: ubuntu-latest
18+
# Only restrict concurrency for non-PR jobs
19+
concurrency:
20+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
21+
env:
22+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
permissions:
24+
contents: write
25+
steps:
26+
- uses: actions/checkout@v5
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
33+
34+
- uses: r-lib/actions/setup-r-dependencies@v2
35+
with:
36+
extra-packages: any::pkgdown, local::.
37+
needs: website
38+
39+
- name: Build site
40+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
41+
shell: Rscript {0}
42+
43+
- name: Deploy to GitHub pages 🚀
44+
if: github.event_name != 'pull_request'
45+
uses: JamesIves/github-pages-deploy-action@v4.7.3
46+
with:
47+
clean: false
48+
branch: gh-pages
49+
folder: docs

.github/workflows/tic.yml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
docs/
22
.Rhistory
3+
docs

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Version: 1.0.6
55
Date: 2025-09-15
66
Authors@R: c( person(given = "Lampros", family = "Mouselimis", email = "mouselimislampros@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-8024-1546")))
77
BugReports: https://github.com/mlampros/SuperpixelImageSegmentation/issues
8-
URL: https://github.com/mlampros/SuperpixelImageSegmentation
8+
URL: https://github.com/mlampros/SuperpixelImageSegmentation, https://mlampros.github.io/SuperpixelImageSegmentation/
99
Description: Image Segmentation using Superpixels, Affinity Propagation and Kmeans Clustering. The R code is based primarily on the article "Image Segmentation using SLIC Superpixels and Affinity Propagation Clustering, Bao Zhou, International Journal of Science and Research (IJSR), 2013" <https://www.ijsr.net/archive/v4i4/SUB152869.pdf>.
1010
License: GPL-3
1111
Encoding: UTF-8

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11

2-
[![tic](https://github.com/mlampros/SuperpixelImageSegmentation/workflows/tic/badge.svg?branch=master)](https://github.com/mlampros/SuperpixelImageSegmentation/actions)
3-
[![codecov.io](https://codecov.io/github/mlampros/SuperpixelImageSegmentation/coverage.svg?branch=master)](https://codecov.io/github/mlampros/SuperpixelImageSegmentation?branch=master)
2+
[![R-CMD-check](https://github.com/mlampros/SuperpixelImageSegmentation/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/mlampros/SuperpixelImageSegmentation/actions/workflows/R-CMD-check.yaml)
43
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/SuperpixelImageSegmentation)](http://cran.r-project.org/package=SuperpixelImageSegmentation)
54
[![Downloads](http://cranlogs.r-pkg.org/badges/grand-total/SuperpixelImageSegmentation?color=blue)](http://www.r-pkg.org/pkg/SuperpixelImageSegmentation)
6-
<a href="https://www.buymeacoffee.com/VY0x8snyh" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" height="21px" ></a>
7-
[![Dependencies](https://tinyverse.netlify.com/badge/SuperpixelImageSegmentation)](https://cran.r-project.org/package=SuperpixelImageSegmentation)
5+
[![status](https://tinyverse.netlify.app/badge/SuperpixelImageSegmentation)](https://CRAN.R-project.org/package=SuperpixelImageSegmentation)
86

97

108
## SuperpixelImageSegmentation

_pkgdown.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
url: https://mlampros.github.io/SuperpixelImageSegmentation/
2+
3+
template:
4+
bootstrap: 5
5+
bootswatch: cerulean
6+

0 commit comments

Comments
 (0)