Skip to content

Commit 6ec85e7

Browse files
committed
Add a CI workflow.
1 parent 252d48b commit 6ec85e7

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
5+
env:
6+
FORCE_COLOR: "1"
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
# Cancel active CI runs for a PR before starting another run
13+
concurrency:
14+
group: ${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: macOS-latest
20+
strategy:
21+
matrix:
22+
# target: ['macOS', 'iOS', 'tvOS', 'watchOS']
23+
target: ['macOS']
24+
include:
25+
- briefcase-run-args:
26+
27+
# - target: iOS
28+
# briefcase-run-args: ' -d "iPhone SE (3rd generation)"'
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- name: Extract config variables
33+
id: config-vars
34+
run: |
35+
PYTHON_VER=$(make config | grep "PYTHON_VER=" | cut -d "=" -f 2)
36+
echo "PYTHON_VER=${PYTHON_VER}" | tee -a ${GITHUB_OUTPUT}
37+
38+
- name: Set up Python
39+
uses: actions/[email protected]
40+
with:
41+
# Appending -dev ensures that we can always build the dev release.
42+
# It's a no-op for versions that have been published.
43+
python-version: ${{ steps.config-vars.outputs.PYTHON_VER }}-dev
44+
45+
- name: Build ${{ matrix.target }}
46+
run: |
47+
# Do the build for the requested target.
48+
make ${{ matrix.target }}
49+
50+
- uses: actions/checkout@v4
51+
with:
52+
repository: beeware/Python-support-testbed
53+
path: Python-support-testbed
54+
ref: py3.13-support
55+
56+
- name: Install dependencies
57+
run: |
58+
# Use the development version of Briefcase
59+
python -m pip install git+https://github.com/beeware/briefcase.git
60+
61+
- name: Run support testbed check
62+
working-directory: Python-support-testbed
63+
# TODO - remove the template_branch option.
64+
run: briefcase run ${{ matrix.target }} Xcode --test ${{ matrix.briefcase-run-args }} -C support_package=\'../dist/Python-${{ steps.config-vars.outputs.PYTHON_VER }}-${{ matrix.target }}-support.custom.tar.gz\' -C template_branch=\'framework-lib\'

0 commit comments

Comments
 (0)