Update codecov/codecov-action action to v5.1.2 #3849
This file contains 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: Code health checks | |
on: [push, pull_request] | |
env: | |
CODECHECK_PY_VER: 3.9 | |
jobs: | |
codecheck: | |
name: Code check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up python-${{ env.CODECHECK_PY_VER }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.CODECHECK_PY_VER }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: false | |
virtualenvs-in-project: false | |
version: 1.4.2 | |
- name: poetry install | |
run: | | |
poetry build && poetry install --with=dev --no-root | |
- name: Run code checks | |
run: | | |
export PYTHONPATH=$PWD/birdseye:$PYTHONPATH && \ | |
pylint --fail-under=7.5 *py tests/*py birdseye/*py && \ | |
pytype -k -P . -V ${{ env.CODECHECK_PY_VER }} birdseye/*py *py telemetry-data/*/*py |