Skip to content

Commit 4d06b27

Browse files
committed
ci(graphne): add graphne framework test
1 parent 24ba000 commit 4d06b27

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test_frameworks.yml

+36
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,42 @@ jobs:
9494
# django.tests.requests module interferes with requests library patching in the tracer -> disable requests patch
9595
run: DD_TRACE_REQUESTS_ENABLED=0 ddtrace-run tests/runtests.py
9696

97+
graphene-testsuite-3_0:
98+
runs-on: ubuntu-latest
99+
env:
100+
DD_PROFILING_ENABLED: true
101+
DD_TESTING_RAISE: true
102+
defaults:
103+
run:
104+
working-directory: graphene
105+
steps:
106+
- uses: actions/checkout@v3
107+
with:
108+
path: ddtrace
109+
- uses: actions/checkout@v3
110+
with:
111+
repository: graphql-python/graphene
112+
ref: v3.0.0
113+
path: graphene
114+
- uses: actions/setup-python@v3
115+
with:
116+
python-version: "3.9"
117+
- name: Install graphene
118+
run: pip install -e "../graphene[test]"
119+
- name: "Upgrade pytest_asyncio"
120+
# pytest_asyncio==0.17 raises `assert type in (None, "pathlist", "args", "linelist", "bool")`
121+
run: pip install "pytest_asyncio<0.17"
122+
- name: Install ddtrace
123+
run: pip install ../ddtrace
124+
- name: Set Pythonpath
125+
run: echo "PYTHONPATH=." >> $GITHUB_ENV
126+
- name: Run tests
127+
# The following tests are broken upstream and will be skipped in this framework test
128+
# test_node_query_incorrect_id - failure: "Unable to parse global ID .*" != "Relay Node "" not found in schema"
129+
# test_example_end_to_end - failure: result.errors != [], result.errors -> [GraphQLError('ID cannot represent......]
130+
# TODO: bump graphene version to fix the tests below. Fix: https://github.com/graphql-python/graphene/pull/1412
131+
run: ddtrace-run pytest graphene -k 'not test_node_query_incorrect_id and not test_example_end_to_end'
132+
97133
fastapi-testsuite-0_75:
98134
runs-on: ubuntu-latest
99135
env:

0 commit comments

Comments
 (0)