Skip to content

Commit a10e9fd

Browse files
committed
fix(.github/workflows/main.yml): set env at runtime
1 parent 03ca963 commit a10e9fd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ jobs:
5252
pip install tox
5353
- name: Run tests
5454
env:
55-
TZ: ${{ matrix.timezone || 'UTC' }}
55+
5656
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' }}
57+
TZ=${{ matrix.timezone || 'UTC' }} echo "Running tests with timezone: $TZ"
58+
TZ=${{ matrix.timezone || 'UTC' }} date
59+
TZ=${{ matrix.timezone || 'UTC' }} python -c "import datetime; print(f'Python datetime now: {datetime.datetime.now()}')"
60+
TZ=${{ matrix.timezone || 'UTC' }} python -c "import time; print(f'Python time localtime: {time.localtime()}')"
61+
TZ=${{ matrix.timezone || 'UTC' }} tox -e ${{ matrix.toxenv || 'py' }}
6262
- name: Upload coverage.xml to codecov
6363
uses: codecov/codecov-action@v5
6464
with:

0 commit comments

Comments
 (0)