fix(ci): fix constantly failing CI #450

Merged
luke merged 27 commits from fix-cicd into main 2025-01-02 18:05:16 +01:00
Showing only changes of commit 30c3672979 - Show all commits

View File

@ -27,22 +27,19 @@ jobs:
format: sonarqube format: sonarqube
no-fail: true no-fail: true
- name: Ensure pipx is in PATH # - name: Ensure pipx is in PATH
run: | # run: |
pipx ensurepath # pipx ensurepath
export PATH=$PATH:/root/.local/bin # export PATH=$PATH:/root/.local/bin
- name: Setup Poetry
uses: abatilo/actions-poetry@v4
# - name: Setup Poetry # - name: Setup Poetry
# run: | # uses: abatilo/actions-poetry@v4
# pipx install poetry
# echo $PIPX_BIN_DIR >> $GITEA_PATH - name: Setup Poetry
run: pipx install --global poetry
- name: Setup virtual environment - name: Setup virtual environment
run: | run: |
source $HOME/.profile
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
@ -53,20 +50,16 @@ jobs:
cache: 'poetry' cache: 'poetry'
- name: Install dependencies - name: Install dependencies
run: | run: poetry install
source $HOME/.profile
poetry install
- name: Unit Test - name: Unit Test
run: | run: |
source $HOME/.profile
poetry run coverage run -m pytest -v --junitxml=testresults.xml poetry run coverage run -m pytest -v --junitxml=testresults.xml
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 - name: Lint
run: | run: |
source $HOME/.profile
poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt . poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt .
cat lintreport.txt cat lintreport.txt