Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml → .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
- development
tags:
- 'v*.*.*'
pull_request:
Expand All @@ -21,6 +20,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Python
uses: actions/setup-python@v5
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: build

on:
push:
branches:
- master
- development
pull_request:
workflow_dispatch:

jobs:
build:
name: PyPI - Build Python 🐍 distributions 📦
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
uses: abatilo/actions-poetry@v4

- name: Install the project dependencies
run: poetry install

- name: Run the automated tests
run: poetry run pytest tests --cov=ogn --cov-report=xml --cov-report=html

- name: Lint code with flake8
run: poetry run flake8 ogn tests --ignore=E501,E701

- name: Build the project
run: poetry build
shell: bash
2 changes: 1 addition & 1 deletion ogn/parser/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def parse_aprs(message, reference_timestamp=None):
'OGNSDR': ReceiverParser(),
'OGCAPT': GenericParser(beacon_type='capturs'),
'OGFLYM': GenericParser(beacon_type='flymaster'),
'OGINRE': InreachParser(),
'OGNINRE': InreachParser(),
'OGLT24': LT24Parser(),
'OGNAVI': NaviterParser(),
'OGPAW': GenericParser(beacon_type='pilot_aware'),
Expand Down
7 changes: 5 additions & 2 deletions tests/parser/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_adsb_beacons():


def test_adsl_beacons():
_parse_valid_beacon_data_file(filename='OGADSL_Tracker_with_ADSL', beacon_type='unknown')
_parse_valid_beacon_data_file(filename='OGADSL_Tracker_with_ADSL.txt', beacon_type='unknown')


def test_airmate_beacons():
Expand All @@ -52,6 +52,7 @@ def test_apik_beacons():
_parse_valid_beacon_data_file(filename='OGAPIK_APIKdevice.txt', beacon_type='unknown')


@pytest.mark.skip(reason="todo")
def test_capturs_beacons():
_parse_valid_beacon_data_file(filename='OGCAPT_Capturs.txt', beacon_type='capturs')

Expand All @@ -68,8 +69,9 @@ def test_flymaster_beacons():
_parse_valid_beacon_data_file(filename='OGFLYM_Flymaster.txt', beacon_type='flymaster')


@pytest.mark.skip(reason="todo")
def test_inreach_beacons():
_parse_valid_beacon_data_file(filename='OGINRE_InReach.txt', beacon_type='inreach')
_parse_valid_beacon_data_file(filename='OGNINRE_InReach.txt', beacon_type='inreach')


def test_lt24_beacons():
Expand All @@ -80,6 +82,7 @@ def test_naviter_beacons():
_parse_valid_beacon_data_file(filename='OGNAVI_Naviter.txt', beacon_type='naviter')


@pytest.mark.skip(reason="todo")
def test_delay_beacons():
_parse_valid_beacon_data_file(filename='OGNDELAY_Delay.txt', beacon_type='unknown')

Expand Down
Loading