Update .gitea/workflows/test.yml
This commit is contained in:
@@ -2,7 +2,7 @@ name: Run Pytest with HTML and XML Test Reports
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [testing_json]
|
||||
branches: [utils_testing]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
echo "🧪 Running pytest with coverage and report generation..."
|
||||
pixi run pytest . \
|
||||
--continue-on-collection-errors \
|
||||
--cov=functions \
|
||||
--cov=slic \
|
||||
--cov-report=xml:ci-reports/coverage/coverage.xml \
|
||||
--cov-report=html:ci-reports/coverage/ \
|
||||
--json-report \
|
||||
@@ -142,8 +142,8 @@ jobs:
|
||||
git add ci-reports/
|
||||
git commit -m "CI: update test report and coverage files" || echo "⚠️ Nothing to commit"
|
||||
|
||||
echo "🚀 Pushing to branch 'testing_json' on slic.git..."
|
||||
git push https://ci-token:${{ secrets.CI_TOKEN }}@gitea.psi.ch/tligui_y/slic.git HEAD:testing_json > push_main.log 2>&1 || {
|
||||
echo "🚀 Pushing to branch 'utils_testing' on slic.git..."
|
||||
git push https://ci-token:${{ secrets.CI_TOKEN }}@gitea.psi.ch/tligui_y/slic.git HEAD:utils_testing > push_main.log 2>&1 || {
|
||||
echo "❌ Push to main repo failed"
|
||||
cat push_main.log | grep -i 'error\|fatal\|refused'
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user