-
Notifications
You must be signed in to change notification settings - Fork 32
58 lines (52 loc) · 1.32 KB
/
validate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
name: validate
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
validate_cff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check whether the citation metadata from CITATION.cff is valid
uses: citation-file-format/[email protected]
with:
args: --validate
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@master
markdown_link_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: yes
use-verbose-mode: yes
config-file: .github/workflows/mlc_config.json
miss_hit:
runs-on: ubuntu-latest
strategy:
matrix:
command: [mh_style, mh_metric --ci, mh_lint]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip3 install -r requirements.txt
- name: ${{ matrix.command }}
run: |
${{ matrix.command }}