Skip to content

Commit

Permalink
add separate api testing step to github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rdnfn committed Jan 22, 2025
1 parent 32280a6 commit 06c5298
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ jobs:
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests
run: pytest
- name: Run non-API tests
run: pytest -v -m "not api"

- name: Run API tests
run: pytest -v -m "api"
3 changes: 3 additions & 0 deletions src/inverse_cai/experiment/core_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import subprocess
import pytest


@pytest.mark.slow
@pytest.mark.api
def test_cli_minimal_experiment():
"""Test that we can run a minimal experiment end-to-end using the CLI."""
# Run the CLI command in a subprocess
Expand Down

0 comments on commit 06c5298

Please sign in to comment.