Skip to content

[Snyk] Security upgrade python from 3.12-slim to 3.13.0rc2-slim #102

[Snyk] Security upgrade python from 3.12-slim to 3.13.0rc2-slim

[Snyk] Security upgrade python from 3.12-slim to 3.13.0rc2-slim #102

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/[email protected]
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/*