File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test Windows Temp Dir
2+
3+ on :
4+ push :
5+ branches : [ mainline ]
6+ pull_request :
7+ branches : [ mainline ]
8+ workflow_dispatch :
9+
10+ jobs :
11+ Python :
12+ name : windows-latest, python ${{ matrix.python-version }}
13+ runs-on : windows-latest
14+ permissions :
15+ contents : read
16+ env :
17+ PYTHON : ${{ matrix.python-version }}
18+ TEMP : D:\Temp
19+ TMP : D:\Temp
20+ HATCH_DATA_DIR : D:\Temp\hatch
21+ HATCH_CACHE_DIR : D:\Temp\hatch\Cache
22+ UV_CACHE_DIR : D:\Temp\uv-cache
23+ HATCH_ENV_INSTALLER : uv
24+ strategy :
25+ matrix :
26+ python-version : ['3.11', '3.12', '3.13', '3.14']
27+ steps :
28+ - name : Prepare temp dir
29+ run : mkdir -p D:\Temp
30+ shell : cmd
31+
32+ - uses : actions/checkout@v4
33+
34+ - name : Set up Python ${{ matrix.python-version }}
35+ uses : actions/setup-python@v5
36+ with :
37+ python-version : ${{ matrix.python-version }}
38+
39+ - name : Install Hatch
40+ run : pip install hatch
41+
42+ - name : Create Hatch env
43+ run : hatch -v env create
44+
45+ - name : Run Ruff
46+ run : hatch -v run ruff check src test
47+
48+ - name : Run Black
49+ run : hatch -v run black --check --diff src test
50+
51+ - name : Run Mypy
52+ run : hatch -v run mypy src test
53+
54+ - name : Run Build
55+ run : hatch -v build
56+
57+ - name : Run Tests
58+ run : hatch run test
Original file line number Diff line number Diff line change 11[envs .default ]
2+ installer = " uv"
23pre-install-commands = [
3- " pip install -r requirements-testing.txt"
4+ " uv pip install -r requirements-testing.txt"
45]
56
67[envs .default .scripts ]
7- sync = " pip install -r requirements-testing.txt"
8+ sync = " uv pip install -r requirements-testing.txt"
89test = " pytest test/ --cov-config pyproject.toml --ignore=test/openjd/model/benchmark {args}"
910benchmark = " pytest test/openjd/model/benchmark --no-cov {args}"
1011typing = " mypy {args:src test}"
You can’t perform that action at this time.
0 commit comments