Skip to content

Commit a9bd936

Browse files
committed
ci: explicitly test against circuitpython versions
1 parent 8bcddd2 commit a9bd936

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

Diff for: .github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ jobs:
1414
uses: adafruit/workflows-circuitpython-libs/build@main
1515
with:
1616
package-prefix: "asyncio"
17+
18+
test-v9-0-0-alpha5:
19+
uses: ./.github/workflows/run-tests.yml
20+
with:
21+
cp-version: 9.0.0-alpha.5

Diff for: .github/workflows/run-tests.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@
44

55
name: Run tests
66

7-
on: [pull_request, push]
7+
on:
8+
workflow_call:
9+
inputs:
10+
cp-version:
11+
required: true
12+
type: string
813

914
jobs:
1015
run:
1116
runs-on: ubuntu-22.04
17+
env:
18+
CP_VERSION: ${{ inputs.cp-version }}
1219
steps:
1320
- name: Set up repository
1421
uses: actions/checkout@v3
@@ -18,6 +25,7 @@ jobs:
1825
- name: Set up circuitpython repository
1926
uses: actions/checkout@v3
2027
with:
28+
ref: ${{ inputs.cp-version }}
2129
repository: adafruit/circuitpython
2230
path: ./circuitpython/
2331
submodules: false
@@ -32,12 +40,19 @@ jobs:
3240
run: python tools/ci_fetch_deps.py tests
3341
shell: bash
3442
working-directory: ./circuitpython/
43+
- name: Fetch relevant submodules
44+
id: submodules
45+
run: python tools/ci_fetch_deps.py tests
46+
working-directory: ./circuitpython
3547
- name: Install python dependencies
3648
run: pip install -r requirements-dev.txt
3749
shell: bash
3850
working-directory: ./circuitpython/
51+
- name: Build mpy-cross
52+
run: make -C mpy-cross -j2
53+
working-directory: ./circuitpython/
3954
- name: Build unix port
40-
run: make -C ports/unix VARIANT=coverage -j2
55+
run: make -C ports/unix VARIANT=coverage BUILD=build-coverage PROG=micropython -j2
4156
working-directory: ./circuitpython/
4257
- name: Run tests
4358
run: ./run_tests.py

0 commit comments

Comments
 (0)