mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 07:00:37 +02:00
Combines the three feature branches on bundle-deps. Conflicts in server.py,
index.html, preload.js, README and test_server.py keep both sides. The
web-install downloader now uses urllib's default HTTPS context, so the
bundled CA list from 770f26c applies to it on Windows too.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
60 lines
2.0 KiB
YAML
60 lines
2.0 KiB
YAML
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: |
|
|
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
|
|
# 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
|