Skip to content

Commit

Permalink
Add test and lint actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Gonzalez-Martin committed Feb 16, 2021
1 parent 9a7c77f commit 20bd00e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: MLServer Lint

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7.10
- name: Install dependencies
run: |
make install-dev
- name: Lint
run: |
make lint
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: MLServer Tests

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7.10
- name: Install dependencies
run: |
make install-dev
- name: Test
run: |
make test

0 comments on commit 20bd00e

Please sign in to comment.