From 1ddac06c73bc750dd47b78679897eaa384197d08 Mon Sep 17 00:00:00 2001 From: Angel Rivera Date: Fri, 15 Feb 2019 16:11:48 -0500 Subject: [PATCH] actions with script --- .github/build_test.sh | 6 ++++++ .github/main.workflow | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 .github/build_test.sh diff --git a/.github/build_test.sh b/.github/build_test.sh new file mode 100755 index 0000000..7855548 --- /dev/null +++ b/.github/build_test.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +set -o pipefail + +pip install --user --no-cache-dir -r requirements.txt +python test_hello_world.py \ No newline at end of file diff --git a/.github/main.workflow b/.github/main.workflow index 5137e99..fe8442f 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -5,7 +5,7 @@ workflow "build_test" { action "build_test01" { uses = "docker://circleci/python:2.7.14" - runs = "python -V" + runs = "./.github/build_test.sh" } # action "run whoami cmd" {