Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that AQS test fails with default conda env #121

Merged
merged 9 commits into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: micromamba install attrs=22.2.0

- name: Test with pytest
run: pytest -n auto -v -k 'not aqs'
run: pytest -n auto -v

- name: Test with pytspack installed
run: |
Expand All @@ -49,6 +49,10 @@ jobs:
micromamba install 'openssl <3'
pytest -n auto -v -k aqs

- name: Restore current openssl
if: success() || failure()
run: micromamba update openssl

docs:
name: Check docs build
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions tests/test_aqs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import ssl

import pandas as pd
import pytest
from requests.exceptions import SSLError

from monetio import aqs

ssl_version = ssl.OPENSSL_VERSION_INFO


@pytest.mark.xfail(
not ssl_version < (2,), strict=True, reason="Doesn't work with newer OpenSSL", raises=SSLError
)
def test_aqs():
# For MM data proc example
dates = pd.date_range(start="2019-08-01", end="2019-08-31", freq="H")
Expand Down