Skip to content

Commit 1e51818

Browse files
authored
Python: Trim unnecessary dependencies from test-driver-python (#10127)
* Python: Trim unnecessary dependencies from test-driver-python * Python: re-run tests when the tests or driver changes
1 parent 26cdbce commit 1e51818

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,21 +108,21 @@ jobs:
108108
# For changes to Slint internals, do a quick test on Linux for Python only.
109109
python_test_linux:
110110
needs: files-changed
111-
if: needs.files-changed.outputs.internal == 'true' || needs.files-changed.outputs.api_python == 'true'
111+
if: needs.files-changed.outputs.internal == 'true' || needs.files-changed.outputs.api_python == 'true' || needs.files-changed.outputs.tests == 'true'
112112
uses: ./.github/workflows/python_test_reusable.yaml
113113
with:
114114
name: "Python Linux"
115115
os: "ubuntu-22.04"
116116
python_test_macos:
117117
needs: files-changed
118-
if: needs.files-changed.outputs.api_python == 'true'
118+
if: needs.files-changed.outputs.api_python == 'true' || needs.files-changed.outputs.tests == 'true'
119119
uses: ./.github/workflows/python_test_reusable.yaml
120120
with:
121121
name: "Python macOS"
122122
os: "macos-14"
123123
python_test_windows:
124124
needs: files-changed
125-
if: needs.files-changed.outputs.api_python == 'true'
125+
if: needs.files-changed.outputs.api_python == 'true' || needs.files-changed.outputs.tests == 'true'
126126
uses: ./.github/workflows/python_test_reusable.yaml
127127
with:
128128
name: "Python Windows"

tests/driver/python/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ path = "main.rs"
1818
name = "test-driver-python"
1919

2020
[dependencies]
21-
slint = { workspace = true, features = ["std", "compat-1-2"] }
22-
i-slint-backend-testing = { workspace = true, features = ["internal"] }
23-
slint-interpreter = { workspace = true, features = ["std", "compat-1-2", "internal"] }
2421
spin_on = { workspace = true }
2522
tempfile = "3"
2623

0 commit comments

Comments
 (0)