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
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@ jobs:
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }}
RLM_LICENSE: ${{ secrets.LICENSE_SERVER }}

test-no-anybodycon:
runs-on: windows-latest
needs: lint
steps:
- uses: actions/checkout@v6

- uses: prefix-dev/setup-pixi@v0.9.3
with:
environments: test-no-anybodycon
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}

- name: Test that .any tests fail without anybodycon
shell: bash
run: |
! pixi run -e test-no-anybodycon pytest tests/test_Arm2D.any --no-header -rN


# Linux builds have started failing with AMS 8.1 due to some WINE issue:
# ----------------------------- Captured stderr call -----------------------------
Expand Down
7 changes: 7 additions & 0 deletions anypytools/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,13 @@ def __init__(self, name, id, parent, any_defs, any_paths, **kwargs):

def runtest(self):
"""Run an AnyScript test item."""
if not pytest.anytest.ams_path or not os.path.isfile(pytest.anytest.ams_path):
pytest.fail(
f"AnyBodyCon executable not found: '{pytest.anytest.ams_path}'. "
"Ensure AnyBodyCon is installed and available on PATH or specify "
"the path with --anybodycon.",
pytrace=False,
)

tmpdir = TempPathFactory.from_config(self.config, _ispytest=True).mktemp(
self.name
Expand Down
Loading
Loading