Separate out test workflows for changed files check vs. full test suite #3
Workflow file for this run
This file contains 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: 'Citation Check' | |
on: | |
# Run when a branch that modifies a .cff file is merged into main | |
push: | |
branches: | |
- main | |
paths: | |
- '**/*.cff' | |
# Run when commits are pushed to a branch or a PR that modifies a .cff file | |
pull_request: | |
paths: | |
- '**/*.cff' | |
# Allow manual triggering | |
workflow_dispatch: | |
jobs: | |
citation_check: | |
name: 'Check Citation' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Check out the repo' | |
uses: actions/checkout@v4 | |
- name: 'Setup Python' | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: 'Check citation' | |
run: | | |
pip install cffconvert | |
make check_citation |