Skip to content

Commit a1dc3ed

Browse files
committed
Post a comments with link to built docs for PR from forked repo (#2146)
1 parent 5a39d91 commit a1dc3ed

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
GH_BOT_NAME: 'github-actions[bot]'
1313
GH_BOT_EMAIL: 'github-actions[bot]@users.noreply.github.com'
1414
GH_EVENT_OPEN_PR_UPSTREAM: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' &&
15-
github.event.pull_request && !github.event.pull_request.head.repo.fork }}
15+
github.event.pull_request && !github.event.pull_request.base.repo.fork }}
1616
GH_EVENT_PUSH_UPSTREAM: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' &&
1717
github.event.ref == 'refs/heads/master' && github.event.repository && !github.event.repository.fork }}
1818
PUBLISH_DIR: doc/_build/html/
@@ -224,7 +224,7 @@ jobs:
224224
clean:
225225
if: |
226226
github.event_name == 'pull_request' && github.event.action == 'closed' &&
227-
github.event.pull_request && !github.event.pull_request.head.repo.fork
227+
github.event.pull_request && !github.event.pull_request.base.repo.fork
228228
229229
needs: build-and-deploy
230230

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import pytest
2+
3+
import dpnp as cupy
4+
5+
6+
@pytest.mark.skip("dpnp.typing is not implemented yet")
7+
class TestClassGetItem:
8+
9+
def test_class_getitem(self):
10+
from typing import Any
11+
12+
cupy.ndarray[Any, Any]

0 commit comments

Comments
 (0)