Create ci.yml

This commit is contained in:
Tanay Soni 2020-06-09 11:36:27 +02:00 committed by GitHub
parent 394ddab734
commit c4592c1b9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

29
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Haystack CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
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
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
pip install -e .
- name: Test with pytest
run: |
cd test && pytest