feat: enhance log subscription verification to include destination ARN #316
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
| name: Build Test & Coverage | |
| on: | |
| [pull_request, push] | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: 'pip' | |
| - name: Run tests | |
| run: | | |
| pip install -q -U pip | |
| pip install -q pipenv | |
| pipenv install --dev | |
| pipenv run pytest --cov-report=xml --cov=newrelic_lambda_cli tests | |
| - name: Upload Coverage to Codecov | |
| uses: codecov/codecov-action@v5.4.2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true | |
| code-style: | |
| name: Code style | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Check code style | |
| run: | | |
| pip install -q -U pip | |
| pip install -q -U 'black<22.10.1' | |
| black --check newrelic_lambda_cli tests | |
| - name: Check README | |
| run: | | |
| pip install -q -U pip | |
| pip install -q -U setuptools twine wheel | |
| pip install -q -U packaging | |
| python setup.py sdist bdist_wheel | |
| twine check dist/* |