Skip to content

Commit cf3d53a

Browse files
committed
Updated citation validation
1 parent 1409e18 commit cf3d53a

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI
22

33
on:
4-
workflow_dispatch:
4+
workflow_dispatch: # Manually trigger a workflow run using the GitHub API, GitHub CLI, or the GitHub UI.
55
push:
66
pull_request:
77
release:
@@ -12,32 +12,31 @@ jobs:
1212
runs-on: ubuntu-latest
1313
name: Validate CITATION.cff
1414

15-
env:
16-
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"
17-
1815
steps:
19-
- uses: actions/checkout@v2
16+
- name: Checkout Repository
17+
uses: actions/checkout@v5
2018

21-
- name: Install V8
22-
run: sudo apt-get install -y libv8-dev
23-
24-
- name: cff-validator
25-
uses: dieghernan/cff-validator@main
19+
- name: Validate CITATION.cff
20+
id: validate_cff
21+
uses: dieghernan/cff-validator@v4
22+
with:
23+
citation-path: "CITATION.cff"
2624

27-
- name: Upload cff-validator error artifact
28-
uses: actions/upload-artifact@v2.3.0
29-
if: failure()
25+
- name: Upload cff-validator error artifact if failed to validate
26+
uses: actions/upload-artifact@v4
27+
if: ${{ failure() && steps.validate_cff.conclusion == 'failure' }}
3028
with:
3129
name: citation-cff-errors
32-
path: citation_cff_errors.md
30+
path: citation_cff.md
31+
overwrite: true
32+
if-no-files-found: warn
3333

3434
checks:
3535
name: checks
3636
runs-on: ${{ matrix.os }}
37-
needs: Validate-CITATION-cff
3837
strategy:
3938
matrix:
40-
python-version: [3.7, 3.8, 3.9]
39+
python-version: [3.10, 3.11, 3.12, 3.13]
4140
os: [ubuntu-latest, macos-latest, windows-latest]
4241

4342
steps:

0 commit comments

Comments
 (0)