Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions .github/workflows/onlabel_lintingPlus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# NOTE: would be nicer to not re-define them here, however env is not
# NOTE: would be nicer to not re-define them here, however env is not
# evaluated > would need to go thour the output of a previous job
label:
- 'linting::check'
Expand Down Expand Up @@ -231,8 +231,31 @@ jobs:
steps:
- name: Assert that either checks passed on the label is present
run: |
if [[ ${{ needs.URL_check.result }} == 'success' || ${{ needs.record_passed_label.outputs.passed }} == 'true' ]]; then
echo 'URL status ok';
else exit 1; fi
# First, check if the workflow was triggered by the correct label.
# If not, the relevant jobs were likely skipped, and we should not fail the workflow.
if [[ "${{ github.event.label.name }}" != "${{ env.LABEL_CHECK }}" ]]; then
echo "Workflow not triggered by '${{ env.LABEL_CHECK }}' label (actual label: '${{ github.event.label.name }}')."
echo "Skipping status assertion and exiting gracefully."
exit 0
fi

# If triggered by the correct label, proceed with the status check.
URL_check_RESULT="${{ needs.URL_check.result }}"
PASSED_LABEL_EXISTS="${{ needs.record_passed_label.outputs.passed }}"

echo "Verifying R CMD check status..."
echo " - URL_check job result: ${URL_check_RESULT}"
echo " - '${{ env.LABEL_SUCCESS }}' label found on PR: ${PASSED_LABEL_EXISTS}"

if [[ "${URL_check_RESULT}" == 'success' ]]; then
echo "=> Success: URL_check job passed."
exit 0
elif [[ "${PASSED_LABEL_EXISTS}" == 'true' ]]; then
echo "=> Success: Although URL_check job result was '${URL_check_RESULT}', the '${{ env.LABEL_SUCCESS }}' label already exists on the PR."
exit 0
else
echo "=> Failure: URL_check job result was '${URL_check_RESULT}' and the '${{ env.LABEL_SUCCESS }}' label was not found."
exit 1
fi

# NOTE: Currently for the linting there is not check that passes if the label linting::passed is present
29 changes: 26 additions & 3 deletions .github/workflows/onlabel_pkgdown_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,30 @@ jobs:
steps:
- name: Assert that either job passed or the label is present
run: |
if [[ ${{ needs.pkgdown_build.result }} == 'success' || ${{ needs.record_passed_label.outputs.passed }} == 'true' ]]; then
echo 'pkgdonw status ok';
else exit 1; fi
# First, check if the workflow was triggered by the correct label.
# If not, the relevant jobs were likely skipped, and we should not fail the workflow.
if [[ "${{ github.event.label.name }}" != "${{ env.LABEL_CHECK }}" ]]; then
echo "Workflow not triggered by '${{ env.LABEL_CHECK }}' label (actual label: '${{ github.event.label.name }}')."
echo "Skipping status assertion and exiting gracefully."
exit 0
fi

# If triggered by the correct label, proceed with the status check.
pkgdown_build_RESULT="${{ needs.pkgdown_build.result }}"
PASSED_LABEL_EXISTS="${{ needs.record_passed_label.outputs.passed }}"

echo "Verifying R CMD check status..."
echo " - pkgdown_build job result: ${pkgdown_build_RESULT}"
echo " - '${{ env.LABEL_SUCCESS }}' label found on PR: ${PASSED_LABEL_EXISTS}"

if [[ "${pkgdown_build_RESULT}" == 'success' ]]; then
echo "=> Success: pkgdown_build job passed."
exit 0
elif [[ "${PASSED_LABEL_EXISTS}" == 'true' ]]; then
echo "=> Success: Although pkgdown_build job result was '${pkgdown_build_RESULT}', the '${{ env.LABEL_SUCCESS }}' label already exists on the PR."
exit 0
else
echo "=> Failure: pkgdown_build job result was '${pkgdown_build_RESULT}' and the '${{ env.LABEL_SUCCESS }}' label was not found."
exit 1
fi

14 changes: 7 additions & 7 deletions .github/workflows/publish_version_enforce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ jobs:
pkgdown::build_site_github_pages(dest_dir= "${{ env.DOC_LOC }}", new_process = FALSE, install = FALSE)
shell: Rscript {0}
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
- name: Upload pkgdown artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.DOC_LOC }}/

release-version:
# NOTE: Currently this workflow only runs if a release- branch has an open pull request
needs:
Expand All @@ -130,7 +130,7 @@ jobs:
contents: write
pull-requests: write
repository-projects: write
pages: write
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -167,15 +167,15 @@ jobs:
awk '/# abn ${{ steps.release_version.outputs.version }}*/{a=1};a;/# abn ${{ steps.release_version.outputs.previous_version }}*/{exit}' NEWS.md | head -n -1 >> body.md
- name: Create tag and release # 2
run: |
echo $GITHUB_SHA
echo $GITHUB_SHA
gh release create ${{ steps.release_version.outputs.version }} \
--target $GITHUB_SHA \
--latest \
--title "${{ steps.release_version.outputs.version }}" \
--notes-file body.md \
--repo ${{ env.OWNER }}/${{ env.REPO }} \
- name: Get the built package
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
name:
package
Expand All @@ -187,7 +187,7 @@ jobs:
--repo ${{ env.OWNER }}/${{ env.REPO }}
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
- name: Adding the label ${{ env.LABEL_PUBLISHED }} # 2
run: |
gh pr edit ${{ needs.associated_pr.outputs.event }} --add-label ${{ env.LABEL_PUBLISHED }} --repo ${{ env.OWNER }}/${{ env.REPO }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish_version_merging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ jobs:
pkgdown::build_site_github_pages(dest_dir= "${{ env.DOC_LOC }}", new_process = FALSE, install = FALSE)
shell: Rscript {0}
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
- name: Upload pkgdown artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.DOC_LOC }}/

release-version:
needs:
needs:
- associated_pr
- build-release-content
- build-pkgdown-content
Expand All @@ -124,7 +124,7 @@ jobs:
contents: write
pull-requests: write
repository-projects: write
pages: write
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
--notes-file body.md \
--repo ${{ env.OWNER }}/${{ env.REPO }}
- name: Get the built package
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
name:
package
Expand All @@ -173,7 +173,7 @@ jobs:
--repo ${{ env.OWNER }}/${{ env.REPO }}
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
- name: Adding the label ${{ env.LABEL_PUBLISHED }}
run: |
gh pr edit ${{ needs.associated_pr.outputs.event }} --add-label ${{ env.LABEL_PUBLISHED }} --repo ${{ env.OWNER }}/${{ env.REPO }}
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: abn
Title: Modelling Multivariate Data with Additive Bayesian Networks
Version: 3.1.9
Date: 2025-06-26
Version: 3.1.10
Date: 2025-08-07
Authors@R: c(
person("Matteo", "Delucchi", , "matteo.delucchi@math.uzh.ch", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-9327-1496")),
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

# abn 3.1.10
[diff](https://github.com/furrer-lab/abn/compare/3.1.3...3.1.10)

> 2025-08-07


# abn 3.1.9
[diff](https://github.com/furrer-lab/abn/compare/3.1.3...3.1.9)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- WARNING: -->
<!-- The ?branch=release-x.y.y is updated automatically by the initiate_version_release workflow -->
[![status](https://joss.theoj.org/papers/1bbc43a2be86f5d3f831cedb5cf81812/status.svg)](https://joss.theoj.org/papers/10.21105/joss.06822)
[![On Label CRAN Checks](https://github.com/furrer-lab/abn/actions/workflows/onlabel_CRAN_checks.yml/badge.svg?branch=release-3.1.9)](https://github.com/furrer-lab/abn/actions/workflows/onlabel_CRAN_checks.yml)
[![On Label CRAN Checks](https://github.com/furrer-lab/abn/actions/workflows/onlabel_CRAN_checks.yml/badge.svg?branch=release-3.1.10)](https://github.com/furrer-lab/abn/actions/workflows/onlabel_CRAN_checks.yml)
[![Codecov](https://img.shields.io/codecov/c/github/furrer-lab/abn)](https://app.codecov.io/gh/furrer-lab/abn)
[![GitHub R package version](https://img.shields.io/github/r-package/v/furrer-lab/abn)](https://github.com/furrer-lab/abn/tags)
![cran](https://www.r-pkg.org/badges/version-ago/abn)
Expand Down
18 changes: 9 additions & 9 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for abn 3.1.9.
# Generated by GNU Autoconf 2.71 for abn 3.1.10.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
Expand Down Expand Up @@ -607,8 +607,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='abn'
PACKAGE_TARNAME='abn'
PACKAGE_VERSION='3.1.9'
PACKAGE_STRING='abn 3.1.9'
PACKAGE_VERSION='3.1.10'
PACKAGE_STRING='abn 3.1.10'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

Expand Down Expand Up @@ -1212,7 +1212,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures abn 3.1.9 to adapt to many kinds of systems.
\`configure' configures abn 3.1.10 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1274,7 +1274,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of abn 3.1.9:";;
short | recursive ) echo "Configuration of abn 3.1.10:";;
esac
cat <<\_ACEOF

Expand Down Expand Up @@ -1342,7 +1342,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
abn configure 3.1.9
abn configure 3.1.10
generated by GNU Autoconf 2.71

Copyright (C) 2021 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1379,7 +1379,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by abn $as_me 3.1.9, which was
It was created by abn $as_me 3.1.10, which was
generated by GNU Autoconf 2.71. Invocation command line was

$ $0$ac_configure_args_raw
Expand Down Expand Up @@ -2368,7 +2368,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by abn $as_me 3.1.9, which was
This file was extended by abn $as_me 3.1.10, which was
generated by GNU Autoconf 2.71. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -2423,7 +2423,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
abn config.status 3.1.9
abn config.status 3.1.10
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([abn],[3.1.9])
AC_INIT([abn],[3.1.10])

## Use gsl-config to find arguments for compiler and linker flags
##
Expand Down
Loading