Skip to content

Commit

Permalink
adding a new gcp based build
Browse files Browse the repository at this point in the history
  • Loading branch information
noahgift committed Oct 15, 2020
1 parent a4aedd5 commit 8c497b8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/gcp.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python application test with Github Actions
name: GCP Python 3.7
on: [push]
jobs:
build:
Expand All @@ -11,10 +11,14 @@ jobs:
python-version: 3.7.9
- name: Install dependencies
run: |
make install
make install-gcp
- name: Lint
run: |
make lint
- name: Test
run: |
make test
- name: Format
run: |
make format
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python application test with Github Actions for Azure
name: Azure Python 3.5
on: [push]
jobs:
build:
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
install:
pip install --upgrade pip &&\
pip install -r requirements.txt

install-gcp:
pip install --upgrade pip &&\
pip install -r requirements-gcp.txt

lint:
pylint --disable=R,C hello.py

Expand Down
5 changes: 5 additions & 0 deletions requirements-gcp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest
click
pylint
pytest-cov
black

0 comments on commit 8c497b8

Please sign in to comment.