Skip to content

build(deps): bump msgpack from 1.2.1 to 1.2.2 #632

build(deps): bump msgpack from 1.2.1 to 1.2.2

build(deps): bump msgpack from 1.2.1 to 1.2.2 #632

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.14'
- name: Install ruff
run: pip install -q ruff
- name: Ruff check
run: ruff check app/
- name: Ruff format check
run: ruff format --check app/
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.14'
- name: Audit dependencies
run: pip install -q pip-audit && pip-audit -r requirements.txt
test:
runs-on: ubuntu-latest
needs: [lint, security]
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.14'
cache: 'pip'
- name: Install dependencies
run: pip install -q -r requirements.txt -r requirements-dev.txt
- name: Run tests
env:
CONTRASTAPI_DB: /tmp/ci_api.db
CONTRASTAPI_CVE_DB: /tmp/ci_cve.db
CONTRASTAPI_CACHE_DB: /tmp/ci_cache.db
run: cd app && python -m pytest tests/ -v --tb=short
c-scanner:
# The pytest suite fully mocks subprocess.run, so it never builds the C
# engine. This job is the only thing that catches a broken scanner build
# BEFORE the ARM server deploy (a build failure there = an outage). CI uses
# the -lcurl fallback (the server's curl-impersonate-chrome is not on apt);
# the SSRF/redirect logic is identical, only the curl handle setup differs.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install C build deps
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev libssl-dev libcjson-dev
- name: Compile scanner — 0-warning gate (-Werror; production binary = monolithic src/contrastscan.c)
run: cd scanner && make CFLAGS="-Wall -Wextra -O2 -Werror"
- name: C unit tests (scoring)
run: cd scanner && make test CFLAGS="-Wall -Wextra -O2 -Werror" && ./test_scoring