Skip to content

Commit ef77e0f

Browse files
committed
!dropme: test CI credits
1 parent 83c01c6 commit ef77e0f

1 file changed

Lines changed: 5 additions & 81 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ jobs:
109109
run: chmod +x micropython/mpy-cross/build/mpy-cross
110110
- run: pipx install poetry
111111
- run: poetry install --only=build
112+
- name: Create credits file
113+
run: |
114+
echo "$PYBRICKS_EV3_CREDITS" > bricks/ev3/ci_credits.txt
115+
env:
116+
PYBRICKS_EV3_CREDITS: ${{ secrets.PYBRICKS_EV3_CREDITS }}
112117
- name: Build firmware (pull request)
113118
if: ${{ github.base_ref != null }}
114119
run: poetry run .github/build-each-commit.py ${{ matrix.hub }} ${{ github.sha }}
@@ -140,84 +145,3 @@ jobs:
140145
with:
141146
name: ${{ matrix.hub }}-firmware-build-${{ github.run_number }}-git${{ steps.vars.outputs.short_sha }}
142147
path: bricks/${{ matrix.hub }}/build/upload/*
143-
144-
virtualhub:
145-
name: virtual hub
146-
needs: [mpy_cross]
147-
runs-on: ubuntu-24.04
148-
steps:
149-
- name: Install dependencies
150-
run: sudo apt-get update && sudo apt-get install lcov pipx
151-
- name: Install Pybricksdev
152-
run: pipx install pybricksdev
153-
- name: Checkout repo
154-
uses: actions/checkout@v4
155-
with:
156-
submodules: true
157-
fetch-depth: 0
158-
- name: Checkout submodules
159-
run: |
160-
cd micropython
161-
git submodule update --init --depth 0 lib/axtls
162-
git submodule update --init --depth 0 lib/berkeley-db-1.xx
163-
git submodule update --init --depth 0 lib/libffi
164-
- name: Download mpy-cross
165-
uses: actions/download-artifact@v4
166-
with:
167-
name: mpy-cross
168-
path: micropython/mpy-cross/build
169-
- name: Fix file permission
170-
run: chmod +x micropython/mpy-cross/build/mpy-cross
171-
- run: pipx install poetry
172-
- run: poetry install --only=build
173-
- name: Build and test
174-
run: poetry run ./test-virtualhub.sh
175-
- name: Coveralls
176-
uses: coverallsapp/github-action@v2
177-
with:
178-
github-token: ${{ secrets.GITHUB_TOKEN }}
179-
file: bricks/virtualhub/build-coverage/lcov.info
180-
flag-name: virtualhub
181-
parallel: true
182-
183-
pbio:
184-
name: pbio tests
185-
runs-on: ubuntu-24.04
186-
env:
187-
PBIO_TEST_RESULTS_DIR: lib/pbio/test/results
188-
steps:
189-
- name: Install prerequisites
190-
run: |
191-
sudo apt-get update
192-
sudo apt-get install --yes doxygen graphviz lcov
193-
- name: Checkout repo
194-
uses: actions/checkout@v4
195-
with:
196-
submodules: true
197-
- name: Build
198-
run: |
199-
make $MAKEOPTS -C lib/pbio/test
200-
- name: Build docs
201-
run: |
202-
make $MAKEOPTS -C lib/pbio/doc
203-
- name: Build coverage
204-
run: |
205-
make $MAKEOPTS -C lib/pbio/test build-coverage/lcov.info
206-
- name: Coveralls
207-
uses: coverallsapp/github-action@v2
208-
with:
209-
github-token: ${{ secrets.GITHUB_TOKEN }}
210-
file: lib/pbio/test/build-coverage/lcov.info
211-
flag-name: PBIO
212-
parallel: true
213-
214-
finish:
215-
needs: [virtualhub, pbio]
216-
runs-on: ubuntu-24.04
217-
steps:
218-
- name: Coveralls
219-
uses: coverallsapp/github-action@v2
220-
with:
221-
github-token: ${{ secrets.GITHUB_TOKEN }}
222-
parallel-finished: true
223-

0 commit comments

Comments
 (0)