Skip to content

CI

CI #60

Workflow file for this run

---
name: CI
on:
workflow_dispatch:
pull_request:
schedule:
- cron: "0 0 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linting:
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
shell: bash -leo pipefail {0}
permissions:
contents: read
steps:
- name: checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: ".pre-commit-config.yaml"
- name: Cache pre-commit environments
uses: actions/cache@v6
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Check whether the citation metadata from CITATION.cff is valid
uses: citation-file-format/cffconvert-github-action@2.0.0
with:
args: "--validate"
- name: Pre-commit
run: |
python -m pip install pre-commit
SKIP=no-commit-to-branch pre-commit run --all-files