forked from SysBioChalmers/Human-GEM
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 1004 Bytes
/
yaml-validation.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
name: YAML validation
on: [push, pull_request]
jobs:
yaml-validation:
runs-on: ubuntu-latest
container:
image: ghcr.io/metabolicatlas/memote-docker:0.13
volumes:
- ${{ github.workspace }}:/project:rw
options: --user root --workdir /project
steps:
- name: Checkout
uses: actions/checkout@v3
- name: YAML Lint
uses: metabolicatlas/action-yamllint@v3
with:
## File(s) or Directory, separate by space if multiple files or folder are specified
file_or_dir: model/
## Custom configuration (as YAML source)
config_data: "{extends: default, rules: {line-length: disable}}"
## Return non-zero exit code on warnings as well as errors
# strict: # optional, default is false
- name: Basic MEMOTE tests
run: python code/test/memoteTest.py
- name: Test import with cobrapy and consistency with annotation files
run: python code/test/sanityCheck.py