|
30 | 30 | pip install tox>=2.0 |
31 | 31 | tox -e pep8 |
32 | 32 |
|
| 33 | + spotless: |
| 34 | + name: Java Spotless check |
| 35 | + runs-on: ubuntu-latest |
| 36 | + steps: |
| 37 | + - name: Checkout python-for-android |
| 38 | + uses: actions/checkout@v5 |
| 39 | + - name: Set up Java 17 |
| 40 | + uses: actions/setup-java@v4 |
| 41 | + with: |
| 42 | + distribution: 'temurin' |
| 43 | + java-version: '17' |
| 44 | + - name: Set up Gradle |
| 45 | + uses: gradle/actions/setup-gradle@v4 |
| 46 | + - name: Run Spotless check |
| 47 | + working-directory: pythonforandroid/bootstraps |
| 48 | + run: ./common/build/gradlew spotlessCheck |
| 49 | + |
33 | 50 | test: |
34 | 51 | name: Pytest [Python ${{ matrix.python-version }} | ${{ matrix.os }}] |
35 | | - needs: flake8 |
| 52 | + needs: [flake8, spotless] |
36 | 53 | runs-on: ${{ matrix.os }} |
37 | 54 | strategy: |
38 | 55 | fail-fast: false |
|
61 | 78 |
|
62 | 79 | ubuntu_build: |
63 | 80 | name: Build test APP [ ${{ matrix.runs_on }} | ${{ matrix.bootstrap.name }} ] |
64 | | - needs: [flake8] |
| 81 | + needs: [flake8, spotless] |
65 | 82 | runs-on: ${{ matrix.runs_on }} |
66 | 83 | strategy: |
67 | 84 | matrix: |
@@ -120,7 +137,7 @@ jobs: |
120 | 137 |
|
121 | 138 | macos_build: |
122 | 139 | name: Build test APP [ ${{ matrix.runs_on }} | ${{ matrix.bootstrap.name }} ] |
123 | | - needs: [flake8] |
| 140 | + needs: [flake8, spotless] |
124 | 141 | runs-on: ${{ matrix.runs_on }} |
125 | 142 | strategy: |
126 | 143 | matrix: |
@@ -194,7 +211,7 @@ jobs: |
194 | 211 |
|
195 | 212 | ubuntu_rebuild_updated_recipes: |
196 | 213 | name: Test updated recipes for arch ${{ matrix.android_arch }} [ ubuntu-latest ] |
197 | | - needs: [flake8] |
| 214 | + needs: [flake8, spotless] |
198 | 215 | runs-on: ubuntu-latest |
199 | 216 | # continue on error to see failures across all architectures |
200 | 217 | continue-on-error: true |
@@ -227,7 +244,7 @@ jobs: |
227 | 244 |
|
228 | 245 | macos_rebuild_updated_recipes: |
229 | 246 | name: Test updated recipes for arch ${{ matrix.android_arch }} [ ${{ matrix.runs_on }} ] |
230 | | - needs: [flake8] |
| 247 | + needs: [flake8, spotless] |
231 | 248 | runs-on: ${{ matrix.runs_on }} |
232 | 249 | # continue on error to see failures across all architectures |
233 | 250 | continue-on-error: true |
|
0 commit comments