Skip to content

ci: author, review, and automerge regen prs via github apps #24

ci: author, review, and automerge regen prs via github apps

ci: author, review, and automerge regen prs via github apps #24

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.11"
- name: Install package
# Installation must succeed — a packaging regression (e.g. wheel
# omitting webhook verify) has to fail CI, not hide.
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest
- name: Verify hand-written modules are present
run: |
test -f src/convoy/utils/webhook.py
test -f test/signature-vectors.json
test -f test/test_shared_vectors.py
- name: Verify installed package exposes webhook verify
# No PYTHONPATH: this must resolve from the installed distribution.
run: python -c "from convoy.utils.webhook import Webhook"
- name: Execute verify + shared vector tests
# Import from the installed distribution so packaging bugs surface.
run: pytest test/test_webhook.py test/test_shared_vectors.py -q