|
6 | 6 | - '.github/workflows/test-integration.yml'
|
7 | 7 | - '.github/workflows/testdata/**'
|
8 | 8 | - 'action.yml'
|
9 |
| - - 'action-setup.sh' |
10 | 9 | - 'compilesketches/**'
|
11 | 10 |
|
12 | 11 | push:
|
13 | 12 | paths:
|
14 | 13 | - '.github/workflows/test-integration.yml'
|
15 | 14 | - '.github/workflows/testdata/**'
|
16 | 15 | - 'action.yml'
|
17 |
| - - 'action-setup.sh' |
18 | 16 | - 'compilesketches/**'
|
19 | 17 |
|
20 | 18 | env:
|
21 | 19 | SKETCHES_REPORTS_PATH: sketches-reports
|
| 20 | + TESTDATA_PLATFORMS_PATH: .github/workflows/testdata/platforms |
22 | 21 | TESTDATA_SKETCHES_PATH: .github/workflows/testdata/sketches
|
23 | 22 | TESTDATA_REPORTS_PATH: .github/workflows/testdata/reports
|
24 | 23 |
|
@@ -203,6 +202,64 @@ jobs:
|
203 | 202 | sketch-paths: |
|
204 | 203 | - examples/Sweep
|
205 | 204 |
|
| 205 | + python-package-dependency: |
| 206 | + runs-on: ubuntu-latest |
| 207 | + |
| 208 | + steps: |
| 209 | + - name: Checkout local repo |
| 210 | + uses: actions/checkout@v3 |
| 211 | + |
| 212 | + - name: Install Python package dependency |
| 213 | + run: | |
| 214 | + pip install \ |
| 215 | + --ignore-installed \ |
| 216 | + --user \ |
| 217 | + cowsay |
| 218 | +
|
| 219 | + - name: Run action with board that has external Python package dependency |
| 220 | + # Use action from local path |
| 221 | + uses: ./ |
| 222 | + with: |
| 223 | + platforms: | |
| 224 | + - name: arduino:avr |
| 225 | + - source-path: ${{ env.TESTDATA_PLATFORMS_PATH }}/PythonPackageDependent |
| 226 | + name: PythonPackageDependent:avr |
| 227 | + fqbn: PythonPackageDependent:avr:package_dependent |
| 228 | + libraries: | |
| 229 | + [] |
| 230 | + sketch-paths: | |
| 231 | + - ${{ env.TESTDATA_SKETCHES_PATH }}/BareMinimum |
| 232 | +
|
| 233 | +
|
| 234 | + # Targeted testing for ESP32 boards platform support. |
| 235 | + pyserial-dependency: |
| 236 | + runs-on: ubuntu-latest |
| 237 | + |
| 238 | + steps: |
| 239 | + - name: Checkout local repo |
| 240 | + uses: actions/checkout@v3 |
| 241 | + |
| 242 | + - name: Install pyserial |
| 243 | + run: | |
| 244 | + # Use of pip3 and omission of recommended flags done to reproduce established use pattern: |
| 245 | + # https://github.com/arduino-libraries/ArduinoIoTCloud/blob/1.11.0/.github/workflows/compile-examples.yml#L206 |
| 246 | + pip3 install pyserial |
| 247 | +
|
| 248 | + - name: Run action with board that has pyserial dependency |
| 249 | + # Use action from local path |
| 250 | + uses: ./ |
| 251 | + with: |
| 252 | + platforms: | |
| 253 | + - name: arduino:avr |
| 254 | + - source-path: ${{ env.TESTDATA_PLATFORMS_PATH }}/PyserialDependent |
| 255 | + name: PyserialDependent:avr |
| 256 | + fqbn: PyserialDependent:avr:pyserial_dependent |
| 257 | + libraries: | |
| 258 | + [] |
| 259 | + sketch-paths: | |
| 260 | + - ${{ env.TESTDATA_SKETCHES_PATH }}/BareMinimum |
| 261 | +
|
| 262 | +
|
206 | 263 | check-sketches-reports:
|
207 | 264 | needs: all-inputs
|
208 | 265 | runs-on: ubuntu-latest
|
|
0 commit comments