File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : macOS Client Smoke
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [main]
7+ paths :
8+ - src/client.py
9+ - requirements.txt
10+ - .github/workflows/macos-client-smoke.yml
11+ pull_request :
12+ branches : [main]
13+ paths :
14+ - src/client.py
15+ - requirements.txt
16+ - .github/workflows/macos-client-smoke.yml
17+
18+ permissions :
19+ contents : read
20+
21+ jobs :
22+ macos-client-smoke :
23+ name : macOS Client Smoke
24+ if : github.event_name != 'pull_request' || github.actor != 'dependabot[bot]'
25+ runs-on : macos-latest
26+ timeout-minutes : 30
27+
28+ steps :
29+ - name : Checkout repository
30+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
31+
32+ - name : Set up Python 3.11
33+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
34+ with :
35+ python-version : ' 3.11'
36+
37+ - name : Install minimal client deps
38+ run : |
39+ python -m pip install --upgrade pip
40+ python -m pip install -r requirements.txt
41+
42+ - name : Compile client module
43+ run : python -m py_compile src/client.py
44+
45+ - name : Import smoke test
46+ run : |
47+ python - <<'PY'
48+ import importlib.util
49+ spec = importlib.util.spec_from_file_location('client', 'src/client.py')
50+ module = importlib.util.module_from_spec(spec)
51+ spec.loader.exec_module(module)
52+ print('macOS client import smoke passed')
53+ PY
You can’t perform that action at this time.
0 commit comments