Skip to content

[ENH] add pre-commit workflows (#44) #18

[ENH] add pre-commit workflows (#44)

[ENH] add pre-commit workflows (#44) #18

Workflow file for this run

---
name: validate CITATION.cff
on:
push:
branches: ['*']
paths:
- CITATION.cff
- .github/workflows/validate_cff.yml
pull_request:
branches: ['*']
paths:
- CITATION.cff
- .github/workflows/validate_cff.yml
jobs:
validate_cff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip3 install cffconvert
- name: Validate CITATION.cff
run: cffconvert --validate