Skip to content

Commit

Permalink
Adapt citation and add cff test (#206)
Browse files Browse the repository at this point in the history
* Add CITATION.cff workflow
* Add abstract to CITATION.cff
* adjust editors in CITATION.cff
* Add contact person in CITATION.cff
* Minor fix with wrongly named variable in demo workflow: rename matrix.python-inplace to matrix.inplace
  • Loading branch information
1kastner authored Mar 11, 2024
1 parent 6fa453f commit 8297d9f
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/citation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Validate CITATION.cff

on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, reopened, edited, synchronize]

jobs:
build:
name: Validate CITATION.cff
runs-on: ubuntu-latest

steps:

- name: Skip Duplicate Actions
uses: fkirc/skip-duplicate-actions@v5

- uses: actions/checkout@v3

- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install cffconvert
run: |
pip3 install --user cffconvert
cffconvert --version
- name: Validate schema
run: |
cffconvert --validate -i CITATION.cff
2 changes: 1 addition & 1 deletion .github/workflows/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Install Python dependencies
run: |
pip3 install --user ${{ matrix.python-inplace }} .
pip3 install --user ${{ matrix.inplace }} .
- name: Run demo
run: |
Expand Down
8 changes: 7 additions & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

cff-version: 1.2.0
title: ConFlowGen
abstract: A generator for synthetic container flows at maritime container terminals with a focus on yard operations
contact:
- affiliation: "Institute of Maritime Logistics, Hamburg University of Technology (TUHH)"
email: [email protected]
family-names: Kastner
given-names: Marvin
message: >-
Please cite this software using the metadata from
'preferred-citation'.
Expand Down Expand Up @@ -47,7 +53,7 @@ preferred-citation:
country: DE
date-start: 2022-02-23
date-end: 2022-02-25
editors-series:
editors:
- family-names: Freitag
given-names: Michael
- family-names: Kinra
Expand Down
3 changes: 2 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Documentation Status](https://readthedocs.org/projects/conflowgen/badge/?version=latest)](https://conflowgen.readthedocs.io/en/latest/?badge=latest)
[![Docs](https://github.com/1kastner/conflowgen/actions/workflows/docs.yaml/badge.svg)](https://github.com/1kastner/conflowgen/actions/workflows/docs.yaml)
[![documentation built](https://github.com/1kastner/conflowgen/actions/workflows/docs.yaml/badge.svg)](https://github.com/1kastner/conflowgen/actions/workflows/docs.yaml)
[![CITATION.cff valid](https://github.com/1kastner/conflowgen/actions/workflows/citation.yml/badge.svg)](https://github.com/1kastner/conflowgen/actions/workflows/citation.yml)

[![Tests](https://github.com/1kastner/conflowgen/actions/workflows/unittests.yaml/badge.svg)](https://github.com/1kastner/conflowgen/actions/workflows/unittests.yaml)
[![codecov](https://codecov.io/gh/1kastner/conflowgen/branch/main/graph/badge.svg?token=GICVMYHJ42)](https://codecov.io/gh/1kastner/conflowgen)
Expand Down

0 comments on commit 8297d9f

Please sign in to comment.