diff --git a/.gitea/workflows/ci-python-poetry-with-docker.yml b/.gitea/workflows/ci-python-poetry-with-docker.yml index ebb281a..b7e62c3 100644 --- a/.gitea/workflows/ci-python-poetry-with-docker.yml +++ b/.gitea/workflows/ci-python-poetry-with-docker.yml @@ -31,6 +31,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: "${{ vars.PYTHON_VERSION }}" + cache: 'poetry' - name: Ensure pipx is in PATH run: | @@ -51,24 +52,11 @@ jobs: poetry config virtualenvs.create true --local poetry config virtualenvs.in-project true --local - - uses: actions/cache@v4.2.0 - name: Define cache for dependencies - with: - path: ./.venv - key: venv-${{ hashFiles('poetry.lock') }} - restore-keys: venv-${{ hashFiles('poetry.lock') }} - - name: Install dependencies run: | source $HOME/.profile poetry install - - name: Lint - run: | - source $HOME/.profile - poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt . - cat lintreport.txt - - name: Unit Test run: | source $HOME/.profile @@ -76,6 +64,12 @@ jobs: poetry run coverage xml sed -i 's@${{ gitea.workspace }}@/github/workspace@g' coverage.xml + - name: Lint + run: | + source $HOME/.profile + poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt . + cat lintreport.txt + - name: SonarQube Cloud Scan uses: SonarSource/sonarqube-scan-action@v4.2.1 env: