Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: yaml worflow #173

Merged
merged 7 commits into from
Jun 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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