Skip to content

Commit

Permalink
github: Run openomf with null renderer and audio backends
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj committed Dec 2, 2024
1 parent 6add65e commit dc33201
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,40 @@ jobs:
cd build-test
ctest --verbose --output-on-failure
- name: Restore omf2097-assets.zip
id: cache-assets
uses: actions/cache/restore@v4
with:
path: omf2097-assets.zip
key: omf2097-assets.zip

- name: Download omf 2097 assets
if: steps.cache-assets.outputs.cache-hit != 'true'
run: wget -q "${{ env.OPENOMF_ASSETS_URL }}"

- name: Cache omf2097-assets.zip
if: steps.cache-assets.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: omf2097-assets.zip
key: omf2097-assets.zip

- name: Extract omf 2097 assets
run: unzip -j omf2097-assets.zip -d build-test/resources

- name: Install pytest requirements
run: pip install --upgrade -r pytest/requirements.txt

- name: Run pytest tests
run: pytest -v pytest

- name: Run openomf with null output
run: |
cd build-test
echo "quit" | ./Debug/openomf --force-renderer NULL --force-audio-backend NULL
env:
LSAN_OPTIONS: suppressions=../lsan.supp

# Build windows release artifacts with MSVC
# -----------------------------------------------------------------------------------------------
build_msvc:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ cmake-build-debug/
cmake-build-release/
.cache
compile_commands.json
__pycache__
*.pyc
5 changes: 5 additions & 0 deletions lsan.supp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# libconfuse
leak:libconfuse

# SDL leak
leak:has_gl_available
1 change: 1 addition & 0 deletions pytest/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest
5 changes: 5 additions & 0 deletions pytest/test_menus.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import pytest


def test_ok():
print("ok")

0 comments on commit dc33201

Please sign in to comment.