forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindows-preflight-portability.yml
More file actions
71 lines (65 loc) · 2.23 KB
/
Copy pathwindows-preflight-portability.yml
File metadata and controls
71 lines (65 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Windows Preflight Portability
on:
push:
branches: [main]
paths:
- '.github/checks-manifest.yaml'
- '.github/scripts/preflight_runner.py'
- '.github/scripts/pr_preflight.py'
- '.github/scripts/run_checks.py'
- '.github/scripts/test_preflight_runner.py'
- '.github/scripts/test_run_checks.py'
- '.github/workflows/windows-preflight-portability.yml'
- 'backend/.python-version'
- 'scripts/pre-push'
- 'scripts/pre-push-singleflight'
- 'scripts/pr-preflight'
- 'scripts/test-pre-push-worktree-fallback.sh'
pull_request:
branches: [main]
paths:
- '.github/checks-manifest.yaml'
- '.github/scripts/preflight_runner.py'
- '.github/scripts/pr_preflight.py'
- '.github/scripts/run_checks.py'
- '.github/scripts/test_preflight_runner.py'
- '.github/scripts/test_run_checks.py'
- '.github/workflows/windows-preflight-portability.yml'
- 'backend/.python-version'
- 'scripts/pre-push'
- 'scripts/pre-push-singleflight'
- 'scripts/pr-preflight'
- 'scripts/test-pre-push-worktree-fallback.sh'
permissions:
contents: read
jobs:
portability:
name: Native Windows process and launcher contracts
runs-on: windows-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Resolve supported Python minor
id: python-version
shell: pwsh
run: |
$parts = (Get-Content backend/.python-version -Raw).Trim().Split('.')
if ($parts.Count -lt 2) {
throw 'backend/.python-version must contain at least major.minor'
}
"version=$($parts[0]).$($parts[1])" >> $env:GITHUB_OUTPUT
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ steps.python-version.outputs.version }}
- name: Run Windows portability checks from the manifest
run: >-
python .github/scripts/run_checks.py
--lane ci
--base HEAD
--head HEAD
--platform windows
--check-id pre-push-worktree-fallback
--check-id preflight-runner-portability
--check-id check-manifest-contract