name: Account journey acceptance on: push: branches: [main] paths: ["src/**", "tests/**", "scripts/run_journey_suites.py", "Makefile", ".forgejo/workflows/journeys.yaml"] workflow_dispatch: jobs: journeys: runs-on: ubuntu-latest container: image: python:3.12-slim@sha256:d764629ce0ddd8c71fd371e9901efb324a95789d2315a47db7e4d27e78f1b0e9 steps: - name: Test the exact commit run: | set -eu mkdir -p journey-source python -c 'import os, urllib.request; urllib.request.urlretrieve("https://forgejo.coulomb.social/" + os.environ["GITHUB_REPOSITORY"] + "/archive/" + os.environ["GITHUB_SHA"] + ".tar.gz", "journey-source.tar.gz")' tar xzf journey-source.tar.gz -C journey-source --strip-components=1 cd journey-source PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python -m unittest discover -s tests PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python scripts/check_layer_conformance.py --report PYTHONDONTWRITEBYTECODE=1 python scripts/run_journey_suites.py --report journey-report.json cat journey-report.json