Skip to content

Commit

Permalink
Merge pull request #173 from SysBioChalmers/feat/yaml-workflow
Browse files Browse the repository at this point in the history
feat: yaml worflow
  • Loading branch information
haowang-bioinfo authored Jun 5, 2020
2 parents e8d4799 + 6f0a133 commit d5c8ddf
Show file tree
Hide file tree
Showing 5 changed files with 322,091 additions and 322,084 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/yaml-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: YAML validation

on:
push:
branches: [ devel ]
pull_request:
branches: [ master, devel ]

jobs:
yaml-validation:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: YAML Lint
uses: ibiqlik/[email protected]
with:
## File(s) or Directory, separate by space if multiple files or folder are specified
file_or_dir: modelFiles/
## Path to custom configuration
# config_file: # optional
## 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: Install cobrapy
run: |
sudo pip install pip --upgrade
sudo pip install cobra
- name: Test cobrapy import
run:
python -c "import cobra ; cobra.io.load_yaml_model('modelFiles/yml/HumanGEM.yml')"
Loading

0 comments on commit d5c8ddf

Please sign in to comment.