Skip to content

Commit 083c5ca

Browse files
authored
ga: added only windows 3.10 (#244)
ga: updated github actions to test windows. fix jma tests ga: reverted to run GA on maaster(main) branch & fork
1 parent d630678 commit 083c5ca

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/build-test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest]
1717
python-version: ['3.7', '3.8', '3.9', '3.10']
18+
include:
19+
- os: windows-latest
20+
python-version: '3.10'
1821
defaults:
1922
run:
2023
shell: bash -l {0}

tests/test_JmaCsvCatalog.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import unittest
22
import csep
3-
4-
3+
from csep.utils.time_utils import datetime_to_utc_epoch
54
import os.path
6-
75
import numpy
86

97
def get_datadir():
@@ -43,8 +41,9 @@ def test_JmaCsvCatalog_loading():
4341
# _datetimes.fill(numpy.nan)
4442

4543
for _idx, _val in enumerate(_dummy):
46-
_datetimes[_idx] = round(1000. * _val.timestamp())
44+
_datetimes[_idx] = datetime_to_utc_epoch(_val)
4745

4846
numpy.testing.assert_allclose(_datetimes, test_catalog.catalog['origin_time'],
4947
err_msg='timestamp mismatch',
50-
verbose=True, rtol=0, atol=0)
48+
verbose=True,
49+
rtol=1e-3, atol=0)

0 commit comments

Comments
 (0)