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

refactor: GitHub actions #332

Merged
merged 1 commit into from
Nov 5, 2021
Merged
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
28 changes: 9 additions & 19 deletions .github/workflows/yaml-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@ on: [push, pull_request]
jobs:
yaml-validation:
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v2

- name: Cache model folder
id: cache-model-files
uses: actions/cache@v2
with:
path: model
key: ${{ github.sha }}

- name: YAML Lint
uses: ibiqlik/action-yamllint@v1.0.0
with:
Expand All @@ -27,16 +21,12 @@ jobs:
## Return non-zero exit code on warnings as well as errors
# strict: # optional, default is false

- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install GLPK, dependency for swiglpk
run: sudo apt-get install glpk-utils libglpk-dev

- name: Test import with cobrapy and consistency with annotation files
run: |
pip install -U pip
pip install cobra
python code/test/sanityCheck.py
uses: addnab/docker-run-action@v3
with:
image: opencobra/memote:latest
options: -v ${{ github.workspace }}:/opt
shell: bash
run: |
cd /opt
python code/test/sanityCheck.py