name: checks on: push: branches: [main] pull_request: jobs: checks: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.9" # the oldest python3 the Mac app may pick up (Xcode CLT) - uses: actions/setup-node@v4 with: node-version: "24" - name: Install zsh run: sudo apt-get update -qq && sudo apt-get install -y -qq zsh - name: Script syntax run: | sh -n ui/local-bin/ssh for f in scripts/*.sh frame/*/*.sh; do case "$(head -n 1 "$f")" in *zsh*) zsh -n "$f" ;; *) bash -n "$f" ;; esac done - name: Python compiles run: | python -m py_compile ui/*.py apk-catalog/*.py frame/android/*.py ios/scripts/*.py # Valve's devkit-utils (vendored; run by the Frame's python3). Most have no .py suffix. python -m py_compile $(find frame/devkit-utils -type f ! -name '*.*' ! -name LICENSE) frame/devkit-utils/devkit_utils/*.py - name: Server tests run: python -m unittest discover -s tests -v - name: App syntax run: node --check app/main.js && node --check app/build/make-icon.js && node --check app/build/fetch-deps.js && node --check app/preload.js && node --check app/install-link.js # The server runs on each desktop OS the app ships for, on the Python version # the app bundles (app/build/fetch-deps.js) and, on Ubuntu, a newer one. server-tests: strategy: fail-fast: false matrix: include: - os: windows-latest python: "3.12" - os: macos-latest python: "3.12" - os: ubuntu-latest python: "3.13" runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - name: Server tests run: python -m unittest discover -s tests -v # The iPhone app: builds for the Simulator and runs its unit tests. ios: runs-on: macos-latest steps: - uses: actions/checkout@v4 - name: Generate the project run: brew install xcodegen && cd ios && xcodegen generate - name: Build and test run: | cd ios udid=$(xcrun simctl list devices available -j | python3 -c 'import json,sys; d=json.load(sys.stdin)["devices"]; print(next(x["udid"] for r in d for x in d[r] if x["name"].startswith("iPhone")))') xcodebuild -project FrameControl.xcodeproj -scheme FrameControl -destination "platform=iOS Simulator,id=$udid" CODE_SIGNING_ALLOWED=NO test