CI #499
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, synchronize] | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| linting: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -leo pipefail {0} | |
| permissions: | |
| contents: read | |
| packages: read | |
| statuses: write | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - 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: | | |
| pip install pre-commit | |
| SKIP=no-commit-to-branch pre-commit run --all-files |