diff --git a/.github/workflows/main-branch.yml b/.github/workflows/main-branch.yml index 58187df..1a89cd6 100644 --- a/.github/workflows/main-branch.yml +++ b/.github/workflows/main-branch.yml @@ -3,6 +3,13 @@ name: Main Branch Workflow on: push: branches: [main] + pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review + - edited workflow_dispatch: permissions: @@ -34,7 +41,7 @@ jobs: run: python .github/scripts/build_static.py - name: Upload Pages artifact - if: steps.build-site.outcome == 'success' + if: github.event_name == 'push' && steps.build-site.outcome == 'success' uses: actions/upload-pages-artifact@v3 with: path: dist diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml deleted file mode 100644 index 2574fa8..0000000 --- a/.github/workflows/pull-request.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Pull Request Validation - -on: - pull_request: - types: [opened, synchronize, reopened, ready_for_review, edited] - workflow_dispatch: - -jobs: - run-tests: - name: Run Tests - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Python environment - uses: ./.github/actions/setup-python-playwright - - - name: Run Tests - id: run-tests - continue-on-error: true - run: python .github/scripts/run_tests.py - - - name: Report Tests Statuses - if: always() - run: python .github/scripts/write_summary.py --include-tests