Skip to content

Commit 751a0f1

Browse files
committed
.github: Run new simulated hub on CI.
1 parent 58de57d commit 751a0f1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ jobs:
145145
needs: [mpy_cross]
146146
runs-on: ubuntu-24.04
147147
steps:
148-
- name: Install depedencies
149-
run: sudo apt-get update && sudo apt-get install lcov python3-numpy --yes
148+
- name: Install dependencies
149+
run: sudo apt-get update && sudo apt-get install lcov pipx
150+
- name: Install Pybricksdev
151+
run: pipx install pybricksdev
150152
- name: Checkout repo
151153
uses: actions/checkout@v4
152154
with:
@@ -166,12 +168,12 @@ jobs:
166168
- name: Fix file permission
167169
run: chmod +x micropython/mpy-cross/build/mpy-cross
168170
- name: Build and test
169-
run: COVERAGE=1 ./test-virtualhub.sh
171+
run: ./test-virtualhub.sh
170172
- name: Coveralls
171173
uses: coverallsapp/github-action@v2
172174
with:
173175
github-token: ${{ secrets.GITHUB_TOKEN }}
174-
file: bricks/virtualhub/build-coverage/lcov.info
176+
file: bricks/simhub/build-coverage/lcov.info
175177
flag-name: virtualhub
176178
parallel: true
177179

test-virtualhub.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ if [[ $CI != "true" ]]; then
1111
NOT_CI="true"
1212
fi
1313

14-
: ${COVERAGE:=1}
14+
COVERAGE=1
15+
export COVERAGE
16+
1517
SCRIPT_DIR=$(readlink -f "$(dirname "$0")")
1618
BRICK_DIR="$SCRIPT_DIR/bricks/simhub"
1719
MP_TEST_DIR="$SCRIPT_DIR/micropython/tests"

0 commit comments

Comments
 (0)