Skip to content

Commit

Permalink
Merge pull request #56 from chenrui333/python-3.8
Browse files Browse the repository at this point in the history
Update repo to use python 3.6.10
  • Loading branch information
rexwangcc authored Jan 30, 2020
2 parents 6ad8de7 + 3291ca0 commit 0cc683c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,33 @@ on:
- master
pull_request:


jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Checkout repo
uses: actions/checkout@v2

- name: Set up Python 3.7
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.7
python-version: 3.6

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
pytest test.py
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.6.10
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Align with the CI/CD YML
FROM python:2.7
FROM python:3.6-alpine

# Setup workdir
WORKDIR /api-server
Expand Down

0 comments on commit 0cc683c

Please sign in to comment.