Skip to content

Commit 56dd15c

Browse files
committed
Add macOS integration tests GitHub Actions workflow
Introduces a new workflow to run integration tests on macOS 14 using CocoaPods, uv, and Flutter. The workflow installs dependencies, runs Python integration tests, and uploads failure screenshots as artifacts.
1 parent 2983130 commit 56dd15c

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: macOS Integration Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test-macos:
9+
runs-on: macos-14
10+
env:
11+
HOMEBREW_NO_AUTO_UPDATE: "1"
12+
13+
steps:
14+
- name: Check out repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install CocoaPods
18+
run: brew install cocoapods
19+
20+
- name: Install uv
21+
shell: bash
22+
run: |
23+
curl -LsSf https://astral.sh/uv/install.sh | sh
24+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
25+
26+
- name: Install Flutter via repo scripts
27+
shell: bash
28+
run: |
29+
set -euo pipefail
30+
source ci/common.sh
31+
source ci/install_flutter.sh
32+
flutter --version
33+
34+
- name: Show tool versions
35+
run: |
36+
python3 --version
37+
uv --version
38+
pod --version
39+
40+
- name: Run integration tests
41+
working-directory: sdk/python
42+
run: |
43+
uv run pytest -s -o log_cli=true -o log_cli_level=INFO packages/flet/integration_tests
44+
45+
- name: Upload failure screenshots
46+
if: failure()
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: integration-test-failures-macos
50+
path: sdk/python/packages/flet/integration_tests/**/*_actual.png
51+
if-no-files-found: ignore

0 commit comments

Comments
 (0)