Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/http-compliance.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
schema = 1
command = ["uv", "run", "python", ".http-compliance/tools/adapters/python_multipart_adapter.py"]
suites = ["multipart"]
profiles = ["multipart.form-data.receiver-core"]
exclude_tags = ["preamble", "transport-padding"]
timeout_ms = 5000
max_output_bytes = 1048576
fail_on_unsupported = true
report_json = "reports/http-compliance.json"
report_junit = "reports/http-compliance.xml"
39 changes: 38 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,47 @@ jobs:
- name: Run rename test
run: scripts/rename

http-compliance:
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
python-version: "3.14"
enable-cache: true

- name: Install dependencies
run: uv sync --frozen

- name: Checkout HTTP Compliance
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: Kludex/http-compliance
ref: a6217077c938b59ae7a46495349831387d2f60f0
path: .http-compliance
persist-credentials: false

- name: Build HTTP Compliance
run: cargo build --locked --release --manifest-path .http-compliance/Cargo.toml
Comment thread
Kludex marked this conversation as resolved.
Outdated

- name: Run HTTP Compliance
uses: Kludex/http-compliance@a6217077c938b59ae7a46495349831387d2f60f0
Comment thread
Kludex marked this conversation as resolved.
Outdated
with:
config: .github/http-compliance.toml
runner-path: .http-compliance/target/release/http-compliance

# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
check:
if: always()
needs: [test]
needs: [test, http-compliance]
runs-on: ubuntu-latest

permissions:
Expand Down
Loading