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