Skip to content

Commit

Permalink
Adding python-app.yml for Github Action CI (#294)
Browse files Browse the repository at this point in the history
* Create python-app.yml

* Update python-app.yml

* Update python-app.yml

* Delete .travis.yml

* Update python-app.yml

* Trigger test failure to see results of github actions

* Remove changes
  • Loading branch information
jinimukh committed Mar 12, 2021
1 parent 47ef480 commit 4de06dc
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 14 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

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 jupyter-client==6.1.6
pip install wheel
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Lint check with black
run: |
black --target-version py37 --line-length 105 --check .
- name: Test with Pytest and Code Coverage Report
run: |
pytest --cov-report term --cov=lux tests/
bash <(curl -s https://codecov.io/bash)
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 4de06dc

Please sign in to comment.