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

Added windows-tests on github actions #244

Merged
merged 1 commit into from
Jan 10, 2024
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
3 changes: 3 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
include:
- os: windows-latest
python-version: '3.10'
defaults:
run:
shell: bash -l {0}
Expand Down
9 changes: 4 additions & 5 deletions tests/test_JmaCsvCatalog.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import unittest
import csep


from csep.utils.time_utils import datetime_to_utc_epoch
import os.path

import numpy

def get_datadir():
Expand Down Expand Up @@ -43,8 +41,9 @@ def test_JmaCsvCatalog_loading():
# _datetimes.fill(numpy.nan)

for _idx, _val in enumerate(_dummy):
_datetimes[_idx] = round(1000. * _val.timestamp())
_datetimes[_idx] = datetime_to_utc_epoch(_val)

numpy.testing.assert_allclose(_datetimes, test_catalog.catalog['origin_time'],
err_msg='timestamp mismatch',
verbose=True, rtol=0, atol=0)
verbose=True,
rtol=1e-3, atol=0)
Loading