-
Notifications
You must be signed in to change notification settings - Fork 46
36 lines (32 loc) · 1.12 KB
/
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
33
34
35
36
name: YAML validation
on:
push:
branches: [develop]
pull_request:
branches: [main, develop]
jobs:
yaml-validation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: YAML Lint
uses: ibiqlik/action-yamllint@v1
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}}"
## Format for parsing output [parsable,standard,colored,auto]
# format: # optional, default is colored
## Return non-zero exit code on warnings as well as errors
# strict: # optional, default is false
- name: Import with cobrapy
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/metabolicatlas/memote-docker:0.13
options: -v ${{ github.workspace }}:/opt
shell: bash
run: |
cd /opt
python -c "import cobra ; cobra.io.load_yaml_model('model/yeast-GEM.yml')"