-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from SysBioChalmers/feat/yaml-workflow
feat: yaml worflow
- Loading branch information
Showing
5 changed files
with
322,091 additions
and
322,084 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')" |
Oops, something went wrong.