Skip to content

Remove bullshit code #74

Remove bullshit code

Remove bullshit code #74

name: Integration Tests with Docker Mixnet
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test-integration-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout thinclient repository
uses: actions/checkout@v4
with:
path: thinclient
- name: Checkout katzenpost repository
uses: actions/checkout@v4
with:
repository: katzenpost/katzenpost
path: katzenpost
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Configure podman socket
run: |
systemctl --user start podman.socket
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install thinclient dependencies
run: |
cd thinclient
python -m pip install --upgrade pip
pip install -e .[test]
- name: Build and start the mixnet
run: |
cd katzenpost/docker && make start wait
- name: Brief pause to ensure mixnet is fully ready
run: sleep 5
- name: Run all Python tests (including channel API integration tests)
run: |
cd thinclient
python -m pytest tests/ -vvv -s --tb=short
- name: Run Rust integration tests
run: |
cd thinclient
cargo test --test '*' -- --nocapture
- name: Stop the mixnet
if: always()
run: |
cd katzenpost/docker && make stop
- name: Upload testnet state
uses: actions/upload-artifact@v4
if: always()
with:
name: mixnet-${{ github.run_id }}-${{ github.job }}
path: |
katzenpost/docker/voting_mixnet/*/*.log