From 78548b1a157eb8c581f1ea6ac77f9159acc48b07 Mon Sep 17 00:00:00 2001 From: amasson Date: Mon, 3 Nov 2025 22:31:55 +0000 Subject: [PATCH] Update .gitea/workflows/publish-pytest-result.yml --- .gitea/workflows/publish-pytest-result.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/publish-pytest-result.yml b/.gitea/workflows/publish-pytest-result.yml index 57bc6f4..4b01cca 100644 --- a/.gitea/workflows/publish-pytest-result.yml +++ b/.gitea/workflows/publish-pytest-result.yml @@ -1,14 +1,27 @@ name: Pytest artifact publish - on: push: + branches: + - main + - master + pull_request: + workflow_dispatch: # Allows manual triggering jobs: print-python-version: runs-on: docker + container: - image: python:3.11-slim + image: python:3.11 + steps: + - name: Install Node.js + run: | + apt-get update + apt-get install -y curl + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - + apt-get install -y nodejs + - name: Print Python Version run: python --version @@ -36,4 +49,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: pytest-html-report - path: test-report.html + path: test-report.html \ No newline at end of file