Skip to content

Commit 879622c

Browse files
committed
ci: Ignore returnValue deprecation warning
1 parent 02a8cd2 commit 879622c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/tests.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,18 @@ jobs:
1717
cache-dependency-path: setup.py
1818
- run: pip install -e .[test]
1919
# Python 3.12 deprecates pkg_resources (also used by py-html-checker).
20+
# https://github.com/pytest-dev/pytest-twisted/issues/183
21+
# https://github.com/sveetch/py-html-checker/issues/26
2022
- run: |
21-
pytest -W error -W ignore::ResourceWarning -W ignore::DeprecationWarning:scrapyd.runner -W ignore::DeprecationWarning:html_checker -W ignore::DeprecationWarning:pkg_resources tests --cov scrapyd
23+
pytest -W error -W ignore::ResourceWarning -W ignore::DeprecationWarning:scrapyd.runner -W ignore::DeprecationWarning:pytest_twisted -W ignore::DeprecationWarning:html_checker -W ignore::DeprecationWarning:pkg_resources tests --cov scrapyd
2224
# Occasional "ConnectionRefusedError: [Errno 111] Connection refused".
2325
- name: Run integration tests
2426
run: |
2527
printf "[scrapyd]\nusername = hello12345\npassword = 67890world\n" > scrapyd.conf
2628
mkdir logs
2729
scrapyd > scrapyd.log 2>&1 &
2830
sleep 1
29-
pytest -W error -W ignore::ResourceWarning integration_tests
31+
pytest -W error -W ignore::ResourceWarning -W ignore::DeprecationWarning:pytest_twisted integration_tests
3032
cat scrapyd.log
3133
- env:
3234
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)