From 11a5900077451d862666a5f130a2df64bacedc6d Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 2 Jan 2025 14:34:12 +0000 Subject: [PATCH] fix(ci): only run lint on app/ and tests/ --- .../workflows/ci-python-poetry-with-docker.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/ci-python-poetry-with-docker.yml b/.gitea/workflows/ci-python-poetry-with-docker.yml index 863dee9..6088326 100644 --- a/.gitea/workflows/ci-python-poetry-with-docker.yml +++ b/.gitea/workflows/ci-python-poetry-with-docker.yml @@ -27,22 +27,9 @@ jobs: format: sonarqube no-fail: true - # - name: Ensure pipx is in PATH - # run: | - # pipx ensurepath - # export PATH=$PATH:/root/.local/bin - - # - name: Setup Poetry - # uses: abatilo/actions-poetry@v4 - - name: Setup Poetry run: PIPX_BIN_DIR=/usr/local/bin pipx install poetry - - name: Setup virtual environment - run: | - poetry config virtualenvs.create true --local - poetry config virtualenvs.in-project true --local - - name: Setup Python uses: actions/setup-python@v5 with: @@ -60,7 +47,8 @@ jobs: - name: Lint run: | - poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt . + mkdir -p $HOME/.cache/pylint + poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt app/ tests/ cat lintreport.txt - name: SonarQube Cloud Scan