Skip to content

Commit

Permalink
ga: added only windows 3.10 (#244)
Browse files Browse the repository at this point in the history
ga: updated github actions to test windows. fix jma tests
ga: reverted to run GA on maaster(main) branch & fork
  • Loading branch information
pabloitu authored Jan 10, 2024
1 parent d630678 commit 083c5ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
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)

0 comments on commit 083c5ca

Please sign in to comment.