Split mission cards #195
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 libxml2-utils libyaml-0-2 | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Install Kaitai Struct Compiler | |
run: | | |
curl -LO https://github.com/kaitai-io/kaitai_struct_compiler/releases/download/0.10/kaitai-struct-compiler_0.10_all.deb | |
sudo apt-get install ./kaitai-struct-compiler_0.10_all.deb | |
- 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: Lint Yaml with yamllint | |
run: yamllint oresat_configs | |
- 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 | |
xmllint --noout --schema tests/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 |