Skip to content

Commit

Permalink
Update the CITATION file, and add some CI to check it
Browse files Browse the repository at this point in the history
  • Loading branch information
Swandog committed Nov 22, 2023
1 parent 1f3fcc9 commit d7289fc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/citation.yaml
Original file line number Diff line number Diff line change
@@ -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"
6 changes: 3 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d7289fc

Please sign in to comment.