From 8c497b8bcd6ad3deb06376402005884f85f449a1 Mon Sep 17 00:00:00 2001 From: Noah Gift Date: Thu, 15 Oct 2020 15:25:10 +0000 Subject: [PATCH] adding a new gcp based build --- .github/workflows/gcp.yml | 8 ++++++-- .github/workflows/main.yml | 2 +- Makefile | 5 +++++ requirements-gcp.txt | 5 +++++ 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 requirements-gcp.txt diff --git a/.github/workflows/gcp.yml b/.github/workflows/gcp.yml index 179c5e9..43206d2 100644 --- a/.github/workflows/gcp.yml +++ b/.github/workflows/gcp.yml @@ -1,4 +1,4 @@ -name: Python application test with Github Actions +name: GCP Python 3.7 on: [push] jobs: build: @@ -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 + diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 32dfce3..4c90efc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Python application test with Github Actions for Azure +name: Azure Python 3.5 on: [push] jobs: build: diff --git a/Makefile b/Makefile index cfb13d8..1ae7f5b 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/requirements-gcp.txt b/requirements-gcp.txt new file mode 100644 index 0000000..6d8b39c --- /dev/null +++ b/requirements-gcp.txt @@ -0,0 +1,5 @@ +pytest +click +pylint +pytest-cov +black \ No newline at end of file