Skip to content

Commit

Permalink
disable torch export test in docker (#3118)
Browse files Browse the repository at this point in the history
* disable torch export test in docker

* Run docker regression based on label

---------

Co-authored-by: Matthias Reso <[email protected]>
  • Loading branch information
agunapal and mreso authored Apr 27, 2024
1 parent 154ee49 commit 719526d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/regression_tests_docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Run Regression Tests on Docker

on:
push:
tags:
- docker
workflow_dispatch:
# run every day at 5:15am
schedule:
Expand Down
8 changes: 8 additions & 0 deletions test/pytest/test_torch_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def custom_working_directory(tmp_path):
os.chdir(tmp_path)


@pytest.mark.skipif(
os.environ.get("TS_RUN_IN_DOCKER", False),
reason="Test to be run outside docker",
)
@pytest.mark.skipif(PT_230_AVAILABLE == False, reason="torch version is < 2.3.0")
def test_torch_export_aot_compile(custom_working_directory):
# Get the path to the custom working directory
Expand Down Expand Up @@ -90,6 +94,10 @@ def test_torch_export_aot_compile(custom_working_directory):
assert labels == EXPECTED_RESULTS


@pytest.mark.skipif(
os.environ.get("TS_RUN_IN_DOCKER", False),
reason="Test to be run outside docker",
)
@pytest.mark.skipif(PT_230_AVAILABLE == False, reason="torch version is < 2.3.0")
def test_torch_export_aot_compile_dynamic_batching(custom_working_directory):
# Get the path to the custom working directory
Expand Down

0 comments on commit 719526d

Please sign in to comment.