Skip to content

Commit

Permalink
ci: Ignore returnValue deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 6, 2024
1 parent 02a8cd2 commit 879622c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ jobs:
cache-dependency-path: setup.py
- run: pip install -e .[test]
# Python 3.12 deprecates pkg_resources (also used by py-html-checker).
# https://github.com/pytest-dev/pytest-twisted/issues/183
# https://github.com/sveetch/py-html-checker/issues/26
- run: |
pytest -W error -W ignore::ResourceWarning -W ignore::DeprecationWarning:scrapyd.runner -W ignore::DeprecationWarning:html_checker -W ignore::DeprecationWarning:pkg_resources tests --cov scrapyd
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
# Occasional "ConnectionRefusedError: [Errno 111] Connection refused".
- name: Run integration tests
run: |
printf "[scrapyd]\nusername = hello12345\npassword = 67890world\n" > scrapyd.conf
mkdir logs
scrapyd > scrapyd.log 2>&1 &
sleep 1
pytest -W error -W ignore::ResourceWarning integration_tests
pytest -W error -W ignore::ResourceWarning -W ignore::DeprecationWarning:pytest_twisted integration_tests
cat scrapyd.log
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 879622c

Please sign in to comment.