Complete project rebrand for better positioning in the press freedom and digital security space. FieldWitness communicates both field deployment and evidence testimony — appropriate for the target audience of journalists, NGOs, and human rights organizations. Rename mapping: - soosef → fieldwitness (package, CLI, all imports) - soosef.stegasoo → fieldwitness.stego - soosef.verisoo → fieldwitness.attest - ~/.soosef/ → ~/.fwmetadata/ (innocuous data dir name) - SOOSEF_DATA_DIR → FIELDWITNESS_DATA_DIR - SoosefConfig → FieldWitnessConfig - SoosefError → FieldWitnessError Also includes: - License switch from MIT to GPL-3.0 - C2PA bridge module (Phase 0-2 MVP): cert.py, export.py, vendor_assertions.py - README repositioned to lead with provenance/federation, stego backgrounded - Threat model skeleton at docs/security/threat-model.md - Planning docs: docs/planning/c2pa-integration.md, docs/planning/gtm-feasibility.md Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
54 lines
1.9 KiB
YAML
54 lines
1.9 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: python:3.12-slim
|
|
steps:
|
|
- name: Install git
|
|
run: apt-get update && apt-get install -y --no-install-recommends git
|
|
- name: Checkout
|
|
run: |
|
|
git clone --depth=1 --branch="${GITHUB_REF_NAME}" https://git.golfcards.club/alee/fieldwitness.git "$GITHUB_WORKSPACE" || git clone --depth=1 https://git.golfcards.club/alee/fieldwitness.git "$GITHUB_WORKSPACE"
|
|
- run: pip install ruff black
|
|
- name: Check formatting
|
|
run: black --check --target-version py312 src/ tests/ frontends/
|
|
- name: Lint
|
|
run: ruff check src/ tests/ frontends/
|
|
|
|
typecheck:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: python:3.12-slim
|
|
steps:
|
|
- name: Install git
|
|
run: apt-get update && apt-get install -y --no-install-recommends git
|
|
- name: Checkout
|
|
run: |
|
|
git clone --depth=1 --branch="${GITHUB_REF_NAME}" https://git.golfcards.club/alee/fieldwitness.git "$GITHUB_WORKSPACE" || git clone --depth=1 https://git.golfcards.club/alee/fieldwitness.git "$GITHUB_WORKSPACE"
|
|
- run: pip install mypy
|
|
- name: Typecheck
|
|
run: mypy src/
|
|
|
|
# TODO: Re-enable once stego/attest are available from git.golfcards.club
|
|
# test:
|
|
# runs-on: ubuntu-latest
|
|
# container:
|
|
# image: python:3.12-slim
|
|
# steps:
|
|
# - name: Install git
|
|
# run: apt-get update && apt-get install -y --no-install-recommends git
|
|
# - name: Checkout
|
|
# run: |
|
|
# git clone --depth=1 --branch="${GITHUB_REF_NAME}" https://git.golfcards.club/alee/fieldwitness.git "$GITHUB_WORKSPACE" || git clone --depth=1 https://git.golfcards.club/alee/fieldwitness.git "$GITHUB_WORKSPACE"
|
|
# - name: Install dependencies
|
|
# run: pip install -e ".[dev]"
|
|
# - name: Run tests
|
|
# run: pytest --cov=fieldwitness --cov-report=term-missing
|