|
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: |
@@ -119,7 +136,7 @@ jobs: |
119 | 136 |
|
120 | 137 | macos_build: |
121 | 138 | name: Build test APP [ ${{ matrix.runs_on }} | ${{ matrix.bootstrap.name }} ] |
122 | | - needs: [flake8] |
| 139 | + needs: [flake8, spotless] |
123 | 140 | runs-on: ${{ matrix.runs_on }} |
124 | 141 | strategy: |
125 | 142 | matrix: |
@@ -193,7 +210,7 @@ jobs: |
193 | 210 |
|
194 | 211 | ubuntu_rebuild_updated_recipes: |
195 | 212 | name: Test updated recipes for arch ${{ matrix.android_arch }} [ ubuntu-latest ] |
196 | | - needs: [flake8] |
| 213 | + needs: [flake8, spotless] |
197 | 214 | runs-on: ubuntu-latest |
198 | 215 | # continue on error to see failures across all architectures |
199 | 216 | continue-on-error: true |
@@ -225,7 +242,7 @@ jobs: |
225 | 242 |
|
226 | 243 | macos_rebuild_updated_recipes: |
227 | 244 | name: Test updated recipes for arch ${{ matrix.android_arch }} [ ${{ matrix.runs_on }} ] |
228 | | - needs: [flake8] |
| 245 | + needs: [flake8, spotless] |
229 | 246 | runs-on: ${{ matrix.runs_on }} |
230 | 247 | # continue on error to see failures across all architectures |
231 | 248 | continue-on-error: true |
|
0 commit comments