File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ jobs:
52
52
pip install tox
53
53
- name : Run tests
54
54
env :
55
- TZ : ${{ matrix.timezone || 'UTC' }}
55
+
56
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' }}
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' }}
62
62
- name : Upload coverage.xml to codecov
63
63
uses : codecov/codecov-action@v5
64
64
with :
Original file line number Diff line number Diff line change 13
13
atheris; python_version < '3.12'
14
14
commands =
15
15
pytest --cov =dateparser --cov-report =xml {posargs: tests}
16
+ passenv = TZ
16
17
17
18
[testenv:all]
18
19
basepython = python3.13
You can’t perform that action at this time.
0 commit comments