Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/pyhubblenetwork.yml
Original file line number Diff line number Diff line change
@@ -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
Loading