From d7289fc47c8cfdf763692d75a1d295fdfb8e4ff7 Mon Sep 17 00:00:00 2001 From: Ken Swanson Date: Tue, 21 Nov 2023 19:24:51 -0600 Subject: [PATCH] Update the CITATION file, and add some CI to check it --- .github/workflows/citation.yaml | 27 +++++++++++++++++++++++++++ CITATION.cff | 6 +++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/citation.yaml diff --git a/.github/workflows/citation.yaml b/.github/workflows/citation.yaml new file mode 100644 index 00000000..86a2b884 --- /dev/null +++ b/.github/workflows/citation.yaml @@ -0,0 +1,27 @@ +name: 'Check CITATION.cff for correct format' + +on: + workflow_dispatch: + pull_request: + paths: + - CITATION.cff + - lace/Cargo.toml + +jobs: + Validate-CITATION-cff: + runs-on: ubuntu-latest + name: Validate CITATION.cff + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Validate CITATION.cff + uses: dieghernan/cff-validator@v3 + + - name: Verify CITATION.cff version field + run: | + pip install cffconvert yq + CITATION_VERSION=$(cffconvert -f schema.org | jq -r .version) + LACE_VERSION=$(tomlq -r .package.version lace/Cargo.toml) + test "$CITATION_VERSION" = "$LACE_VERSION" diff --git a/CITATION.cff b/CITATION.cff index 8a9ef7b5..7ccca7cf 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -33,6 +33,6 @@ abstract: >- keywords: - Bayesian - Machine Learning -license: BSL-1.1 -version: 0.5.0 -date-released: '2023-11-17' +license: BUSL-1.1 +version: 0.5.1 +date-released: UNKNOWN