Skip to content

TST: remove references to Travis. Fix conda tests. #234

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

Merged
merged 2 commits into from
Nov 9, 2018
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
64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ Usage

See the `pandas-gbq documentation <https://pandas-gbq.readthedocs.io/>`_ for more details.

.. |Build Status| image:: https://travis-ci.org/pydata/pandas-gbq.svg?branch=master
:target: https://travis-ci.org/pydata/pandas-gbq
.. |Build Status| image:: https://circleci.com/gh/pydata/pandas-gbq/tree/master.svg?style=svg
:target: https://circleci.com/gh/pydata/pandas-gbq/tree/master
.. |Version Status| image:: https://img.shields.io/pypi/v/pandas-gbq.svg
:target: https://pypi.python.org/pypi/pandas-gbq/
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/pydata/pandas-gbq.svg
Expand Down
34 changes: 0 additions & 34 deletions ci/travis_encrypt_gbq.sh

This file was deleted.

Binary file removed ci/travis_gbq.json.enc
Binary file not shown.
2 changes: 0 additions & 2 deletions ci/travis_gbq_config.txt

This file was deleted.

13 changes: 0 additions & 13 deletions ci/travis_process_gbq_encryption.sh

This file was deleted.

6 changes: 1 addition & 5 deletions tests/system/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ def project_id():
@pytest.fixture(scope="session")
def private_key_path():
path = None
if "TRAVIS_BUILD_DIR" in os.environ:
path = os.path.join(
os.environ["TRAVIS_BUILD_DIR"], "ci", "travis_gbq.json"
)
elif "GBQ_GOOGLE_APPLICATION_CREDENTIALS" in os.environ:
if "GBQ_GOOGLE_APPLICATION_CREDENTIALS" in os.environ:
path = os.environ["GBQ_GOOGLE_APPLICATION_CREDENTIALS"]
elif "GOOGLE_APPLICATION_CREDENTIALS" in os.environ:
path = os.environ["GOOGLE_APPLICATION_CREDENTIALS"]
Expand Down
8 changes: 5 additions & 3 deletions tests/system/test_gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,16 @@ def test_should_properly_handle_nullable_doubles(self, project_id):
)

def test_should_properly_handle_null_floats(self, project_id):
query = "SELECT FLOAT(NULL) AS null_float"
query = """SELECT null_float
FROM UNNEST(ARRAY<FLOAT64>[NULL, 1.0]) AS null_float
"""
df = gbq.read_gbq(
query,
project_id=project_id,
credentials=self.credentials,
dialect="legacy",
dialect="standard",
)
tm.assert_frame_equal(df, DataFrame({"null_float": [np.nan]}))
tm.assert_frame_equal(df, DataFrame({"null_float": [np.nan, 1.0]}))

def test_should_properly_handle_timestamp_unix_epoch(self, project_id):
query = 'SELECT TIMESTAMP("1970-01-01 00:00:00") AS unix_epoch'
Expand Down