fix(ci): fix constantly failing CI #450
@ -31,6 +31,7 @@ jobs:
|
|||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "${{ vars.PYTHON_VERSION }}"
|
python-version: "${{ vars.PYTHON_VERSION }}"
|
||||||
|
cache: 'poetry'
|
||||||
|
|
||||||
- name: Ensure pipx is in PATH
|
- name: Ensure pipx is in PATH
|
||||||
run: |
|
run: |
|
||||||
@ -51,24 +52,11 @@ jobs:
|
|||||||
poetry config virtualenvs.create true --local
|
poetry config virtualenvs.create true --local
|
||||||
poetry config virtualenvs.in-project 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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
source $HOME/.profile
|
source $HOME/.profile
|
||||||
poetry install
|
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
|
- name: Unit Test
|
||||||
run: |
|
run: |
|
||||||
source $HOME/.profile
|
source $HOME/.profile
|
||||||
@ -76,6 +64,12 @@ jobs:
|
|||||||
poetry run coverage xml
|
poetry run coverage xml
|
||||||
sed -i 's@${{ gitea.workspace }}@/github/workspace@g' 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
|
- name: SonarQube Cloud Scan
|
||||||
uses: SonarSource/sonarqube-scan-action@v4.2.1
|
uses: SonarSource/sonarqube-scan-action@v4.2.1
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user