Skip to content

Commit

Permalink
all
Browse files Browse the repository at this point in the history
  • Loading branch information
ikappaki committed Jul 31, 2024
1 parent e8f5af8 commit f925d95
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/tests-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jobs:
BB_BLENDER_TEST_HOME: "~/blender"
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# os: [ubuntu-latest]
os: [macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
version: ['3.11']
blender: ['4.2.0']

Expand Down Expand Up @@ -67,13 +65,11 @@ jobs:
path: ~/blender
key: ${{ steps.cache-blender.outputs.cache-primary-key }}

# - name: Setup headless display
# uses: pyvista/setup-headless-display-action@v2
# - name: Install EGL mesa
# if: "startsWith (matrix.os, 'ubuntu')"
# run: |
# sudo apt-get update -y -qq
# sudo apt-get install -y -qq libegl1-mesa libegl1-mesa-dev
- name: Install EGL mesa
if: "startsWith (matrix.os, 'ubuntu')"
run: |
sudo apt-get update -y -qq
sudo apt-get install -y -qq libegl1-mesa libegl1-mesa-dev
- name: Run integration tests
run: |
Expand Down
2 changes: 2 additions & 0 deletions tests/basilisp_blender/integration/int_eval_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import os
import pytest
from tests.basilisp_blender.integration import test_utils as tu

pytestmark = pytest.mark.integration

@pytest.mark.skipif(os.getenv('RUNNER_OS', 'Linux') != 'Linux', reason="GHA UI test is only supported on Linux.")
def test_eval_editor():
result = tu.blender_eval('''from basilisp_blender import eval as evl
import bpy
Expand Down
3 changes: 2 additions & 1 deletion tests/basilisp_blender/integration/int_nrepl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

pytestmark = pytest.mark.integration

@pytest.mark.skipif(os.getenv('RUNNER_OS', 'Linux') != 'Linux', reason="GHA UI test is only supported on Linux.")
def test_server_start(tmp_path):
codefile = tmp_path / "server-start-code-file.py"
portfile = tmp_path / ".basilisp-blender-int-test-port"
Expand All @@ -28,7 +29,7 @@ def test_server_start(tmp_path):
process = None
try:
process = tu.blender_eval_file(codefile)
tu.file_exists_wait(portfile, 120, 0.5)
tu.file_exists_wait(portfile, 10, 0.5)
assert os.path.exists(str(portfile))

port = None
Expand Down

0 comments on commit f925d95

Please sign in to comment.