Support for postponed annotations #813
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Conformance CI | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
files.pythonhosted.org:443 | |
github.com:443 | |
objects.githubusercontent.com:443 | |
proxy.golang.org:443 | |
pypi.org:443 | |
storage.googleapis.com:443 | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup Python | |
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install the framework | |
run: python -m pip install -e . | |
- name: Setup Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: '1.20' | |
- name: Run HTTP conformance tests | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
with: | |
functionType: 'http' | |
useBuildpacks: false | |
validateMapping: false | |
cmd: "'functions-framework --source tests/conformance/main.py --target write_http --signature-type http'" | |
- name: Run event conformance tests | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
with: | |
functionType: 'legacyevent' | |
useBuildpacks: false | |
validateMapping: true | |
cmd: "'functions-framework --source tests/conformance/main.py --target write_legacy_event --signature-type event'" | |
- name: Run CloudEvents conformance tests | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
with: | |
functionType: 'cloudevent' | |
useBuildpacks: false | |
validateMapping: true | |
cmd: "'functions-framework --source tests/conformance/main.py --target write_cloud_event --signature-type cloudevent'" | |
- name: Run HTTP conformance tests declarative | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
with: | |
functionType: 'http' | |
useBuildpacks: false | |
validateMapping: false | |
cmd: "'functions-framework --source tests/conformance/main.py --target write_http_declarative'" | |
- name: Run CloudEvents conformance tests declarative | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
with: | |
functionType: 'cloudevent' | |
useBuildpacks: false | |
validateMapping: true | |
cmd: "'functions-framework --source tests/conformance/main.py --target write_cloud_event_declarative'" | |
- name: Run HTTP concurrency tests declarative | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
with: | |
functionType: 'http' | |
useBuildpacks: false | |
validateConcurrency: true | |
cmd: "'functions-framework --source tests/conformance/main.py --target write_http_declarative_concurrent'" | |
- name: Run Typed tests declarative | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
with: | |
functionType: 'http' | |
declarativeType: 'typed' | |
useBuildpacks: false | |
validateMapping: false | |
cmd: "'functions-framework --source tests/conformance/main.py --target typed_conformance_test'" |