Skip to content

Commit 8779b73

Browse files
committed
adding swift to github action
1 parent 8a87f65 commit 8779b73

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
# Define the jobs to run in the workflow
99
jobs:
1010
build-and-test:
11-
runs-on: ubuntu-latest
11+
runs-on: macos-latest # Use macOS for Swift and iOS-specific dependencies
1212

1313
steps:
1414
- name: Checkout code
@@ -19,6 +19,11 @@ jobs:
1919
with:
2020
python-version: '3.9' # Specify your required Python version
2121

22+
- name: Set up Swift
23+
run: |
24+
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
25+
sudo xcodebuild -runFirstLaunch
26+
2227
- name: Install dependencies
2328
run: |
2429
python -m pip install --upgrade pip
@@ -32,3 +37,4 @@ jobs:
3237
- name: Run tests
3338
run: |
3439
pytest
40+

0 commit comments

Comments
 (0)