Skip to content

Commit f9aa7a0

Browse files
authored
TST: remove references to Travis. Fix conda tests. (#234)
* TST: remove references to Travis. Fix conda tests. Removes the last references to Travis from the README and configuration files. I've attempted to fix the conda build by updating the null floats test to have at neast 1 non-null value. * fix null float test.
1 parent 1ec41b1 commit f9aa7a0

8 files changed

+8
-123
lines changed

.travis.yml

-64
This file was deleted.

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Usage
3737

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

40-
.. |Build Status| image:: https://travis-ci.org/pydata/pandas-gbq.svg?branch=master
41-
:target: https://travis-ci.org/pydata/pandas-gbq
40+
.. |Build Status| image:: https://circleci.com/gh/pydata/pandas-gbq/tree/master.svg?style=svg
41+
:target: https://circleci.com/gh/pydata/pandas-gbq/tree/master
4242
.. |Version Status| image:: https://img.shields.io/pypi/v/pandas-gbq.svg
4343
:target: https://pypi.python.org/pypi/pandas-gbq/
4444
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/pydata/pandas-gbq.svg

ci/travis_encrypt_gbq.sh

-34
This file was deleted.

ci/travis_gbq.json.enc

-2.3 KB
Binary file not shown.

ci/travis_gbq_config.txt

-2
This file was deleted.

ci/travis_process_gbq_encryption.sh

-13
This file was deleted.

tests/system/conftest.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ def project_id():
1616
@pytest.fixture(scope="session")
1717
def private_key_path():
1818
path = None
19-
if "TRAVIS_BUILD_DIR" in os.environ:
20-
path = os.path.join(
21-
os.environ["TRAVIS_BUILD_DIR"], "ci", "travis_gbq.json"
22-
)
23-
elif "GBQ_GOOGLE_APPLICATION_CREDENTIALS" in os.environ:
19+
if "GBQ_GOOGLE_APPLICATION_CREDENTIALS" in os.environ:
2420
path = os.environ["GBQ_GOOGLE_APPLICATION_CREDENTIALS"]
2521
elif "GOOGLE_APPLICATION_CREDENTIALS" in os.environ:
2622
path = os.environ["GOOGLE_APPLICATION_CREDENTIALS"]

tests/system/test_gbq.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,16 @@ def test_should_properly_handle_nullable_doubles(self, project_id):
297297
)
298298

299299
def test_should_properly_handle_null_floats(self, project_id):
300-
query = "SELECT FLOAT(NULL) AS null_float"
300+
query = """SELECT null_float
301+
FROM UNNEST(ARRAY<FLOAT64>[NULL, 1.0]) AS null_float
302+
"""
301303
df = gbq.read_gbq(
302304
query,
303305
project_id=project_id,
304306
credentials=self.credentials,
305-
dialect="legacy",
307+
dialect="standard",
306308
)
307-
tm.assert_frame_equal(df, DataFrame({"null_float": [np.nan]}))
309+
tm.assert_frame_equal(df, DataFrame({"null_float": [np.nan, 1.0]}))
308310

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

0 commit comments

Comments
 (0)