Skip to content

Support provided.al2023 (#279) #66

Support provided.al2023 (#279)

Support provided.al2023 (#279) #66

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@v4.5.0
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
python setup.py sdist bdist_wheel
twine check dist/*