Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:

jobs:
unit-test:
runs-on: ${{ matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
name: OS ${{ matrix.os}} - Python ${{ matrix.python-version }}
name: OS ${{ matrix.os }} - Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Setup python
Expand All @@ -23,9 +23,11 @@ jobs:
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions
sudo locale-gen fa_IR
pip install --upgrade pip
pip install --upgrade tox tox-gh-actions
- name: Set locale ubuntu
if: runner.os == 'Linux'
run: sudo locale-gen fa_IR
- name: Tox tests
run: |
tox -v
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ build
*.swp

.tags
.tox
tags
.idea/
dist
jdatetime.egg-info
uv.lock
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ lint.extend-select = [
[dependency-groups]
dev = [
"pytest>=8.4.2",
]
"tox>=4.30.3",
]
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ python =

[testenv]
deps =
# There are some tests that need greenlet for run
py38: greenlet
# Install tzdata for support zoneinfo on Windows
tzdata; platform_system == "Windows"
commands =
python -m unittest discover tests -v