8000 chore: run buildpack integration test on pull request (#255) · jrmfg/functions-framework-python@671f2cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 671f2cb

Browse files
author
Kenneth Rosario
authored
chore: run buildpack integration test on pull request (GoogleCloudPlatform#255)
1 parent 2e04cc2 commit 671f2cb

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

.github/workflows/buildpack-integration-test.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,57 @@ on:
44
push:
55
branches:
66
- master
7+
pull_request:
78
workflow_dispatch:
9+
# Runs every day on 12:00 AM PST
10+
schedule:
11+
- cron: "0 0 * * *"
812

913
# Declare default permissions as read only.
1014
permissions: read-all
1115

1216
jobs:
1317
python37:
14-
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.0
18+
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.4
1519
with:
1620
http-builder-source: 'tests/conformance'
1721
http-builder-target: 'write_http_declarative'
1822
cloudevent-builder-source: 'tests/conformance'
1923
cloudevent-builder-target: 'write_cloud_event_declarative'
2024
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
2125
builder-runtime: 'python37'
26+
builder-runtime-version: '3.7'
2227
start-delay: 5
2328
python38:
24-
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.0
29+
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.4
2530
with:
2631
http-builder-source: 'tests/conformance'
2732
http-builder-target: 'write_http_declarative'
2833
cloudevent-builder-source: 'tests/conformance'
2934
cloudevent-builder-target: 'write_cloud_event_declarative'
3035
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
3136
builder-runtime: 'python38'
37+
builder-runtime-version: '3.8'
3238
start-delay: 5
3339
python39:
34-
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.0
40+
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.4
3541
with:
3642
http-builder-source: 'tests/conformance'
3743
http-builder-target: 'write_http_declarative'
3844
cloudevent-builder-source: 'tests/conformance'
3945
cloudevent-builder-target: 'write_cloud_event_declarative'
4046
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
4147
builder-runtime: 'python39'
48+
builder-runtime-version: '3.9'
4249
start-delay: 5
4350
python310:
44-
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.0
51+
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.4
4552
with:
4653
http-builder-source: 'tests/conformance'
4754
http-builder-target: 'write_http_declarative'
4855
cloudevent-builder-source: 'tests/conformance'
4956
cloudevent-builder-target: 'write_cloud_event_declarative'
5057
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
5158
builder-runtime: 'python310'
59+
builder-runtime-version: '3.10'
5260
start-delay: 5

tests/conformance/prerun.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
set -e
88

99
FRAMEWORK_VERSION=$1
10-
if [ -z "${FRAMEWORK_VERSION}" ]
11-
then
12-
echo "Functions Framework version required as first parameter"
13-
exit 1
10+
if [ -z "${FRAMEWORK_VERSION}" ]; then
11+
echo "Functions Framework version required as first parameter"
12+
exit 1
1413
fi
1514

1615
SCRIPT_DIR=$(realpath $(dirname $0))
1716

1817
cd $SCRIPT_DIR
1918

20-
echo "git+https://github.com/GoogleCloudPlatform/functions-framework-python@$FRAMEWORK_VERSION#egg=functions-framework" > requirements.txt
21-
cat requirements.txt
19+
echo "git+https://github.com/GoogleCloudPlatform/functions-framework-python@$FRAMEWORK_VERSION#egg=functions-framework" >requirements.txt
20+
cat requirements.txt

0 commit comments

Comments
 (0)
0