Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,24 @@ jobs:
python-version: ["3.13"]

steps:
- name: Validate GH_PAT secret
- name: Set GH_TOKEN
shell: bash
env:
GH_PAT: ${{ secrets.GH_PAT }}
GH_PAT: >-
Comment thread
jovnc marked this conversation as resolved.
${{
matrix.os == 'ubuntu-latest' &&
secrets.GH_PAT_UBUNTU ||
(matrix.os != 'ubuntu-latest' && secrets.GH_PAT) ||
Comment thread
jovnc marked this conversation as resolved.
''
}}
run: |
if [ -z "$GH_PAT" ]; then
echo "GH_PAT secret is required to run E2E tests."
echo "GH_TOKEN=$GH_PAT" >> $GITHUB_ENV
Comment thread
jovnc marked this conversation as resolved.

- name: Validate GH_TOKEN
shell: bash
run: |
if [ -z "$GH_TOKEN" ]; then
echo "Required PAT secret is missing for ${{ matrix.os }}."
exit 1
fi

Expand Down Expand Up @@ -67,7 +78,5 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"

- name: Run E2E tests
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
run: |
uv run pytest tests/e2e/ -v
21 changes: 15 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,24 @@ jobs:
python-version: ["3.13"]

steps:
- name: Validate GH_PAT secret
- name: Set GH_TOKEN
shell: bash
env:
GH_PAT: ${{ secrets.GH_PAT }}
GH_PAT: >-
${{
matrix.os == 'ubuntu-latest' &&
secrets.GH_PAT_UBUNTU ||
(matrix.os != 'ubuntu-latest' && secrets.GH_PAT) ||
Comment thread
jovnc marked this conversation as resolved.
''
}}
run: |
if [ -z "$GH_PAT" ]; then
echo "GH_PAT secret is required to run E2E tests."
echo "GH_TOKEN=$GH_PAT" >> $GITHUB_ENV

- name: Validate GH_TOKEN
shell: bash
run: |
if [ -z "$GH_TOKEN" ]; then
echo "Required PAT secret is missing for ${{ matrix.os }}."
exit 1
fi
Comment thread
jovnc marked this conversation as resolved.

Expand Down Expand Up @@ -61,7 +72,5 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"

- name: Run E2E tests
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
run: |
uv run pytest tests/e2e/ -v
Loading