Skip to content

Commit 03ca963

Browse files
committed
fix(.github/workflows/main.yml): use different TZ to run CI tests
1 parent 02bd2e5 commit 03ca963

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ jobs:
3232
toxenv: docs
3333
- python-version: "3.13"
3434
toxenv: twinecheck
35+
- python-version: "3.13"
36+
toxenv: py
37+
timezone: "Pacific/Auckland"
38+
- python-version: "3.13"
39+
toxenv: py
40+
timezone: "Pacific/Fiji"
3541
steps:
3642
- uses: actions/checkout@v3
3743
- name: 'Set up Python ${{ matrix.python-version }}'
@@ -45,7 +51,14 @@ jobs:
4551
python -m pip install --upgrade pip
4652
pip install tox
4753
- name: Run tests
48-
run: tox -e ${{ matrix.toxenv || 'py' }}
54+
env:
55+
TZ: ${{ matrix.timezone || 'UTC' }}
56+
run: |
57+
echo "Running tests with timezone: $TZ"
58+
date
59+
python -c "import datetime; print(f'Python datetime now: {datetime.datetime.now()}')"
60+
python -c "import time; print(f'Python time localtime: {time.localtime()}')"
61+
tox -e ${{ matrix.toxenv || 'py' }}
4962
- name: Upload coverage.xml to codecov
5063
uses: codecov/codecov-action@v5
5164
with:

0 commit comments

Comments
 (0)