|
1 | 1 | name: Python Conformance CI
|
2 |
| -on: [push, pull_request] |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - 'master' |
| 6 | + pull_request: |
3 | 7 |
|
4 | 8 | # Declare default permissions as read only.
|
5 | 9 | permissions: read-all
|
@@ -39,67 +43,61 @@ jobs:
|
39 | 43 | - name: Setup Go
|
40 | 44 | uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
|
41 | 45 | with:
|
42 |
| - go-version: '1.16' |
| 46 | + go-version: '1.20' |
43 | 47 |
|
44 | 48 | - name: Run HTTP conformance tests
|
45 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/action@1975792fb34ebbfa058d690666186d669d3a5977 # v1.8.0 |
| 49 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@5f2a796b58f099d749e70ecc83f531f6701c64af # v1.8.3 |
46 | 50 | with:
|
47 |
| - version: 'v1.6.0' |
48 | 51 | functionType: 'http'
|
49 | 52 | useBuildpacks: false
|
50 | 53 | validateMapping: false
|
51 | 54 | cmd: "'functions-framework --source tests/conformance/main.py --target write_http --signature-type http'"
|
52 | 55 |
|
53 | 56 | - name: Run event conformance tests
|
54 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/action@1975792fb34ebbfa058d690666186d669d3a5977 # v1.8.0 |
| 57 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@5f2a796b58f099d749e70ecc83f531f6701c64af # v1.8.3 |
55 | 58 | with:
|
56 |
| - version: 'v1.6.0' |
57 | 59 | functionType: 'legacyevent'
|
58 | 60 | useBuildpacks: false
|
59 | 61 | validateMapping: true
|
60 | 62 | cmd: "'functions-framework --source tests/conformance/main.py --target write_legacy_event --signature-type event'"
|
61 | 63 |
|
62 | 64 | - name: Run CloudEvents conformance tests
|
63 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/action@1975792fb34ebbfa058d690666186d669d3a5977 # v1.8.0 |
| 65 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@5f2a796b58f099d749e70ecc83f531f6701c64af # v1.8.3 |
64 | 66 | with:
|
65 |
| - version: 'v1.6.0' |
66 | 67 | functionType: 'cloudevent'
|
67 | 68 | useBuildpacks: false
|
68 | 69 | validateMapping: true
|
69 | 70 | cmd: "'functions-framework --source tests/conformance/main.py --target write_cloud_event --signature-type cloudevent'"
|
70 | 71 |
|
71 | 72 | - name: Run HTTP conformance tests declarative
|
72 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/action@1975792fb34ebbfa058d690666186d669d3a5977 # v1.8.0 |
| 73 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@5f2a796b58f099d749e70ecc83f531f6701c64af # v1.8.3 |
73 | 74 | with:
|
74 |
| - version: 'v1.6.0' |
75 | 75 | functionType: 'http'
|
76 | 76 | useBuildpacks: false
|
77 | 77 | validateMapping: false
|
78 | 78 | cmd: "'functions-framework --source tests/conformance/main.py --target write_http_declarative'"
|
79 | 79 |
|
80 | 80 | - name: Run CloudEvents conformance tests declarative
|
81 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/action@1975792fb34ebbfa058d690666186d669d3a5977 # v1.8.0 |
| 81 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@5f2a796b58f099d749e70ecc83f531f6701c64af # v1.8.3 |
82 | 82 | with:
|
83 |
| - version: 'v1.6.0' |
84 | 83 | functionType: 'cloudevent'
|
85 | 84 | useBuildpacks: false
|
86 | 85 | validateMapping: true
|
87 | 86 | cmd: "'functions-framework --source tests/conformance/main.py --target write_cloud_event_declarative'"
|
88 | 87 |
|
89 | 88 | - name: Run HTTP concurrency tests declarative
|
90 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/action@1975792fb34ebbfa058d690666186d669d3a5977 # v1.8.0 |
| 89 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@5f2a796b58f099d749e70ecc83f531f6701c64af # v1.8.3 |
91 | 90 | with:
|
92 |
| - version: 'v1.6.0' |
93 | 91 | functionType: 'http'
|
94 | 92 | useBuildpacks: false
|
95 | 93 | validateConcurrency: true
|
96 | 94 | cmd: "'functions-framework --source tests/conformance/main.py --target write_http_declarative_concurrent'"
|
97 | 95 |
|
98 | 96 | - name: Run Typed tests declarative
|
99 |
| - uses: GoogleCloudPlatform/functions-framework-conformance/action@1975792fb34ebbfa058d690666186d669d3a5977 # v1.8.0 |
| 97 | + uses: GoogleCloudPlatform/functions-framework-conformance/action@5f2a796b58f099d749e70ecc83f531f6701c64af # v1.8.3 |
100 | 98 | with:
|
101 |
| - version: 'v1.6.0' |
102 | 99 | functionType: 'http'
|
| 100 | + declarativeType: 'typed' |
103 | 101 | useBuildpacks: false
|
104 | 102 | validateMapping: false
|
105 |
| - cmd: "'functions-framework --source tests/conformance/main.py --target write_typed_event_declarative'" |
| 103 | + cmd: "'functions-framework --source tests/conformance/main.py --target typed_conformance_test'" |
0 commit comments