7171 dart run serious_python:main package app/src -p iOS -r flet -r --pre
7272 flutter build ios --no-codesign
7373
74-
7574 android :
7675 name : Test on Android
7776 runs-on : ubuntu-latest
@@ -137,9 +136,9 @@ jobs:
137136 cache : true
138137
139138 - name : Run tests
140- shell : pwsh
139+ shell : bash
140+ working-directory : " src/serious_python/example/flet_example"
141141 run : |
142- cd src/serious_python/example/flet_example
143142 dart run serious_python:main package app/src -p Windows -r flet -r --pre
144143 flutter test integration_test -d windows
145144
@@ -180,8 +179,8 @@ jobs:
180179
181180 - name : Run tests
182181 shell : bash
182+ working-directory : " src/serious_python/example/flet_example"
183183 run : |
184- cd src/serious_python/example/flet_example
185184 dart run serious_python:main package app/src -p Linux -r flet -r --pre
186185 xvfb-run flutter test integration_test -d linux
187186
@@ -208,14 +207,14 @@ jobs:
208207 - name : Install deps
209208 shell : bash
210209 run : |
211- sudo sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf
210+ # sudo sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf
212211 sudo apt-get update -y --allow-releaseinfo-change
213212 sudo apt-get install -y clang ninja-build xvfb libgtk-3-dev gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav
214213
215214 - name : Run tests
216215 shell : bash
216+ working-directory : " src/serious_python/example/flet_example"
217217 run : |
218- cd src/serious_python/example/flet_example
219218 dart run serious_python:main package app/src -p Linux -r flet -r --pre
220219 xvfb-run flutter test integration_test -d linux
221220
@@ -260,19 +259,27 @@ jobs:
260259 echo "$PUB_DEV_TOKEN" | base64 --decode > $HOME/.config/dart/pub-credentials.json
261260
262261 - name : Patch pubspec versions
262+ shell : bash
263+ working-directory : " src"
263264 run : |
264- uv run "$SCRIPTS/patch_pubspec.py" "src/serious_python_platform_interface/pubspec.yaml" "$PKG_VER"
265- uv run "$SCRIPTS/patch_pubspec.py" "src/serious_python/pubspec.yaml" "$PKG_VER"
266- uv run "$SCRIPTS/patch_pubspec.py" "src/serious_python_android/pubspec.yaml" "$PKG_VER"
267- uv run "$SCRIPTS/patch_pubspec.py" "src/serious_python_darwin/pubspec.yaml" "$PKG_VER"
268- uv run "$SCRIPTS/patch_pubspec.py" "src/serious_python_windows/pubspec.yaml" "$PKG_VER"
269- uv run "$SCRIPTS/patch_pubspec.py" "src/serious_python_linux/pubspec.yaml" "$PKG_VER"
265+ for pkg in \
266+ "serious_python" \
267+ "serious_python_platform_interface" \
268+ "serious_python_android" \
269+ "serious_python_darwin" \
270+ "serious_python_windows" \
271+ "serious_python_linux"; do
272+ uv run "$SCRIPTS/patch_pubspec.py" "$pkg/pubspec.yaml" "$PKG_VER"
273+ done
270274
271275 - name : Publish packages
272276 shell : bash
273- if : false
274277 run : |
275- publish_pkg () { pushd "$1" >/dev/null; dart pub publish --force; popd >/dev/null; }
278+ publish_pkg () {
279+ pushd "$1" >/dev/null
280+ dart pub publish --force --dry-run
281+ popd >/dev/null
282+ }
276283
277284 publish_pkg src/serious_python_platform_interface
278285 sleep 600
0 commit comments