Build(deps-dev): Bump org.apache.maven.plugins:maven-shade-plugin from 3.6.1 to 3.6.2 in /connectors/athena-databricks-connector #341
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a basic workflow to help you get started with Actions | |
| name: CI | |
| # Controls when the workflow will run | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the main branch | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| linter: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [3.11] | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install project for developers | |
| run: make install-dev | |
| - name: Run linter | |
| run: make lint | |
| license-check: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [3.11] | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run license-check | |
| run: make license-check | |
| doc: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [3.11] | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install project for developers | |
| run: make install-dev | |
| - name: Run Sphinx doc generation | |
| run: make doc-sphinx | |
| tests_linux: | |
| needs: linter | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [3.11] | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install project for developers | |
| run: make install-dev | |
| - name: Run tests | |
| id: unit-test | |
| run: pytest -v --cov-config=.coveragerc --cov=nx_neptune -l --tb=short --maxfail=1 --cov-fail-under=80 tests/ | |
| - name: Package test reports | |
| run: coverage xml && coverage html | |
| if: always() | |
| - name: Upload HTML coverage report | |
| id: artifact-upload-step | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| if: always() | |
| with: | |
| name: coverage-report | |
| path: htmlcov/ | |
| - name: Comment PR with artifact link | |
| if: ${{ failure() && steps.unit-test.outcome == 'failure' && github.event_name == 'pull_request'}} | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| with: | |
| script: | | |
| const artifactId = ${{ steps.artifact-upload-step.outputs.artifact-id }} | |
| const prNumber = context.payload.pull_request.number; | |
| const runId = context.runId; | |
| const artifactUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${runId}/artifacts/${artifactId}`; | |
| github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: prNumber, | |
| body: `📊 **Coverage Report**: Download the HTML report [here](${artifactUrl}).` | |
| }); |