Skip to content

Commit

Permalink
Merge pull request #126 from CIROH-UA/fix_tz
Browse files Browse the repository at this point in the history
fix timezone
  • Loading branch information
JordanLaserGit authored Sep 24, 2024
2 parents 7d4ace7 + 35a120f commit d779e42
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_test_docker_arm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test Datastream Docker Containers on ARM
name: Build, Test, Push Datastream Docker Containers on ARM
on:
push:
branches:
Expand All @@ -13,7 +13,7 @@ on:
- '.github/workflows/build_test_docker_arm.yml'

jobs:
build-test-docker-arm:
build-test-push-docker-arm:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_test_docker_x86.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '.github/workflows/datastream_python.yml'

jobs:
build-test-docker:
build-test-docker-x86:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_test_push_docker_x86.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '.github/workflows/datastream_python.yml'

jobs:
build-test-push-docker:
build-test-push-docker-x86:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/datastream_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
permissions:
contents: read
jobs:
build:
test-python-tools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/forcingprocessor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ on:
permissions:
contents: read
jobs:
build:

test-forcingprocessor:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
Expand Down
3 changes: 2 additions & 1 deletion python_tools/tests/test_configurer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os, pytest, json
from datetime import datetime
import pytz as tz
from python_tools.configure_datastream import create_confs

SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
Expand Down Expand Up @@ -100,7 +101,7 @@ def test_conf_daily():
data = json.load(fp)

start = datetime.strptime(data['time']['start_time'],"%Y-%m-%d %H:%M:%S")
assert start.day == datetime.today().day
assert start.day == datetime.now(tz.timezone('US/Eastern')).day

with open(CONF_NWM,'r') as fp:
data = json.load(fp)
Expand Down

0 comments on commit d779e42

Please sign in to comment.