From b5cc2110eace39a8a725e9d030499c0fe1a07a67 Mon Sep 17 00:00:00 2001 From: hunterhubble Date: Thu, 11 Jun 2026 20:13:59 +0000 Subject: [PATCH] Add workflow to run pyhubblenetwork CI tests - On PRs to hubble-satnet-decoder, run sdr-docker, which will build with a local copy of hubble-satnet-decoder (not pip install), and then runs the pyhubblenetwork CI tests Signed-off-by: hunterhubble --- .github/workflows/pyhubblenetwork.yml | 64 +++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/pyhubblenetwork.yml diff --git a/.github/workflows/pyhubblenetwork.yml b/.github/workflows/pyhubblenetwork.yml new file mode 100644 index 0000000..5bbf3e2 --- /dev/null +++ b/.github/workflows/pyhubblenetwork.yml @@ -0,0 +1,64 @@ +name: PyHubbleNetwork CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout hubble-satnet-decoder + uses: actions/checkout@v6 + with: + path: decoder-src + + - name: Checkout sdr-docker + uses: actions/checkout@v6 + with: + repository: HubbleNetwork/sdr-docker + path: sdr-docker + + - name: Copy decoder source into sdr-docker context + run: cp -r decoder-src sdr-docker/decoder-src + + - name: Set up Python 3.12 + uses: actions/setup-python@v6 + with: + python-version: "3.12" + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build local image with local decoder + uses: docker/build-push-action@v6 + with: + context: ./sdr-docker/ + build-args: USE_LOCAL_DECODER=1 + load: true + tags: sdr-docker:pr-test + cache-from: type=gha + cache-to: type=gha,mode=max + + - name: Checkout pyhubblenetwork + uses: actions/checkout@v6 + with: + repository: HubbleNetwork/pyhubblenetwork + path: pyhubblenetwork + + - name: Install pyhubblenetwork + run: | + cd pyhubblenetwork + python -m pip install --upgrade pip + pip install -e ".[dev]" + + - name: Run sat integration tests + env: + SDR_DOCKER_IMAGE: sdr-docker:pr-test + run: pytest pyhubblenetwork/tests/test_sat_integration.py -v --tb=short \ No newline at end of file