another attempt at unfucking the CI

master
halcy 2024-02-11 15:52:06 +02:00
rodzic 9d2fa016f1
commit 8713b8670d
3 zmienionych plików z 19 dodań i 3 usunięć

Wyświetl plik

@ -7,7 +7,7 @@ jobs:
- checkout
- run:
name: "Install test deps"
command: "pip install .[test,webpush,blurhash]"
command: "pip install .[test_old,webpush,blurhash]"
- run:
name: "Run tests"
command: "python setup.py pytest --addopts '--junitxml=tests/result.xml'"
@ -20,7 +20,7 @@ jobs:
- checkout
- run:
name: "Install test deps"
command: "pip install .[test,webpush,blurhash]"
command: "pip install .[test_old,webpush,blurhash]"
- run:
name: "Run tests"
command: "python setup.py pytest --addopts '--junitxml=tests/result.xml'"
@ -33,7 +33,7 @@ jobs:
- checkout
- run:
name: "Install test deps"
command: "pip install .[test,webpush,blurhash]"
command: "pip install .[test_old,webpush,blurhash]"
- run:
name: "Run tests"
command: "python setup.py pytest --addopts '--junitxml=tests/result.xml'"

Wyświetl plik

@ -48,6 +48,16 @@ test = [
'pytz',
'pytest-retry'
]
test_old = [
'pytest',
'pytest-runner',
'pytest-cov',
'vcrpy',
'pytest-vcr',
'pytest-mock',
'requests-mock',
'pytz',
]
[project.urls]
Repository="https://github.com/halcy/Mastodon.py"

Wyświetl plik

@ -19,6 +19,12 @@ def vcr(vcr):
vcr.match_on = ['path']
return vcr
@pytest.fixture(scope='module')
def vcr_config():
return {
"match_on": ["path"],
}
def patch_streaming():
# For monkeypatching so we can make vcrpy better
import vcr.stubs