Skip to content
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #152 from tubone24/add_github_workflow
Browse files Browse the repository at this point in the history
Update pythonpackage.yml
  • Loading branch information
tubone24 committed Aug 27, 2019
2 parents 82c6ab4 + f890bd4 commit d3308f5
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 9 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python package

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Setup ebook-homebrew
run: |
python setup.py install
- name: Test with pytest
run: |
pip install pytest
pip install -r requirements-test.txt
pytest --it
- name: Lint check
run: |
black ebook_homebrew setup.py --check
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ dist: xenial
language:
- python
python:
- "3.6"
- "3.7"
- 3.6
- 3.7

before_install:
- |
Expand All @@ -19,8 +19,10 @@ before_install:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- pip install -U pip
install:
- pip install -r requirements-test.txt
- pip install -r requirements.txt

script:
- python setup.py install
Expand All @@ -39,4 +41,4 @@ cache:

notifications:
slack:
secure: "KmPt/b+P3Dm1L4TS0K6Q96cPvCvVJS5lXwCcqVMzjBExuWTFQXiBMyvtq/cUyxweWAspsQhrra1sysl3D5BgzORT5OewoXLJZ9HHsc7iNszAtiZ2wh7mpeZsA9j+akV0FEhl5pjopTVfXZMMR4l+SsNMpAGs2j80d4sDmidfzRZ0ccKNgtN1OOTYN0jntQL7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muQkGhGraUiq2y2f/CajdpqnYVk3sUatmYRcULI6Aia2kDFjkzR7segLx+F7kiZIrGlu9AaQXupuJHftBdQ4NjbDVjz0f4pHvZ+9Wj44gHcU="
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ PyYAML>=4.2b1
Sphinx==2.1.2
sphinxcontrib-websupport==1.1.2
uvloop==0.12.*; sys_platform != 'win32' and sys_platform != 'cygwin' and sys_platform != 'cli'
responder==1.3.1
responder==1.3.2
marshmallow==2.19.5
sphinxcontrib-openapi==0.4.0
graphql-core==2.2.1
SQLAlchemy==1.3.7
six==1.12
SQLAlchemy==1.3.6
5 changes: 2 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@ install_requires =
Pillow>=5.3.0
PyPDF2==1.26.0
PyYAML>=4.2b1
responder==1.3.1
responder==1.3.2
uvloop==0.12.*; sys_platform != 'win32' and sys_platform != 'cygwin' and sys_platform != 'cli'
marshmallow==2.19.5
graphql-core==2.2.1
SQLAlchemy==1.3.7
six==1.12
SQLAlchemy==1.3.6
tests_require =
pytest==5.0.1
pytest-cov==2.6.0
Expand Down
1 change: 1 addition & 0 deletions shippable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ build:

before_install:
- pip install -r requirements-test.txt
- pip install -r requirements.txt

install:
- python setup.py install
Expand Down

0 comments on commit d3308f5

Please sign in to comment.