|
9 | 9 | firebaseToolsVersion:
|
10 | 10 | gradleInfoLog:
|
11 | 11 | type: boolean
|
| 12 | + pythonVersion: |
12 | 13 | pull_request:
|
13 | 14 | paths:
|
14 | 15 | - .github/workflows/dataconnect.yml
|
|
27 | 28 | FDC_FIREBASE_TOOLS_VERSION: ${{ inputs.firebaseToolsVersion || '13.29.1' }}
|
28 | 29 | FDC_FIREBASE_TOOLS_DIR: /tmp/firebase-tools
|
29 | 30 | FDC_FIREBASE_COMMAND: /tmp/firebase-tools/node_modules/.bin/firebase
|
| 31 | + FDC_PYTHON_VERSION: ${{ inputs.pythonVersion || '3.13' }} |
30 | 32 |
|
31 | 33 | concurrency:
|
32 | 34 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
@@ -254,12 +256,69 @@ jobs:
|
254 | 256 | runs-on: ubuntu-latest
|
255 | 257 | steps:
|
256 | 258 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
| 259 | + sparse-checkout: '.github/' |
257 | 260 | with:
|
258 | 261 | show-progress: false
|
259 | 262 | - uses: docker://rhysd/actionlint:1.7.7
|
260 | 263 | with:
|
261 | 264 | args: -color /github/workspace/.github/workflows/dataconnect.yml
|
262 | 265 |
|
| 266 | + python-ci-unit-tests: |
| 267 | + continue-on-error: false |
| 268 | + runs-on: ubuntu-latest |
| 269 | + steps: |
| 270 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 271 | + sparse-checkout: 'firebase-dataconnect/ci/' |
| 272 | + - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 |
| 273 | + with: |
| 274 | + python-version: ${{ env.FDC_PYTHON_VERSION }} |
| 275 | + - run: pip install -r firebase-dataconnect/ci/requirements.txt |
| 276 | + - name: pytest |
| 277 | + working-directory: firebase-dataconnect/ci |
| 278 | + run: pytest --verbose --full-trace --color=no --strict-config |
| 279 | + |
| 280 | + pytnon-ci-lint: |
| 281 | + continue-on-error: false |
| 282 | + runs-on: ubuntu-latest |
| 283 | + steps: |
| 284 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 285 | + sparse-checkout: 'firebase-dataconnect/ci/' |
| 286 | + - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 |
| 287 | + with: |
| 288 | + python-version: ${{ env.FDC_PYTHON_VERSION }} |
| 289 | + - run: pip install -r firebase-dataconnect/ci/requirements.txt |
| 290 | + - name: ruff check |
| 291 | + working-directory: firebase-dataconnect/ci |
| 292 | + run: ruff check --diff --verbose --no-cache --output-format=github --exit-non-zero-on-fix |
| 293 | + |
| 294 | + pytnon-ci-format: |
| 295 | + continue-on-error: false |
| 296 | + runs-on: ubuntu-latest |
| 297 | + steps: |
| 298 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 299 | + sparse-checkout: 'firebase-dataconnect/ci/' |
| 300 | + - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 |
| 301 | + with: |
| 302 | + python-version: ${{ env.FDC_PYTHON_VERSION }} |
| 303 | + - run: pip install -r firebase-dataconnect/ci/requirements.txt |
| 304 | + - name: ruff format |
| 305 | + working-directory: firebase-dataconnect/ci |
| 306 | + run: ruff format --diff --verbose --no-cache |
| 307 | + |
| 308 | + python-ci-type-check: |
| 309 | + continue-on-error: false |
| 310 | + runs-on: ubuntu-latest |
| 311 | + steps: |
| 312 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 313 | + sparse-checkout: 'firebase-dataconnect/ci/' |
| 314 | + - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 |
| 315 | + with: |
| 316 | + python-version: ${{ env.FDC_PYTHON_VERSION }} |
| 317 | + - run: pip install -r firebase-dataconnect/ci/requirements.txt |
| 318 | + - name: pyright |
| 319 | + working-directory: firebase-dataconnect/ci |
| 320 | + run: pyright --warnings --stats |
| 321 | + |
263 | 322 | send-notifications:
|
264 | 323 | needs: [integration-test, actionlint-dataconnect-yml]
|
265 | 324 | if: always()
|
|
0 commit comments