Skip to content

Kaitai Struct Generator #168

Kaitai Struct Generator

Kaitai Struct Generator #168

Workflow file for this run

name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
cache: "pip"
- name: Install dependencies
run: |
sudo apt install libyaml-0-2 python3-kaitaistruct
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with Pylama
run: pylama
- name: Check format with Black
run: black --check --diff .
- name: Check format with isort
run: isort --check --diff .
- name: Test with Python's unittest
run: python -m unittest
- name: Test building pypi package
run: python -m build
- name: Test building sphinx docs
run: make -C docs html
- name: Test installed scripts
run: |
pip install dist/*.whl
oresat-configs > /dev/null
oresat-gen-fw-files c3
oresat-gen-dcf c3
oresat-print-od c3 > /dev/null
oresat-gen-kaitai
oresat-gen-xtce
curl -O https://www.omg.org/spec/XTCE/20180204/SpaceSystem.xsd
xmllint --noout --schema SpaceSystem.xsd oresat0_5.xtce
oresat-configs cards > /dev/null
oresat-configs pdo c3 --list > /dev/null
pip uninstall -y oresat-configs
- name: Compile Kaitai
run: ksc -t python oresat0_5.ksy