File tree Expand file tree Collapse file tree 2 files changed +63
-2
lines changed
Expand file tree Collapse file tree 2 files changed +63
-2
lines changed 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 : Set up uv
40+ uses : astral-sh/setup-uv@v4
41+
42+ - name : Install Hatch
43+ run : uv tool install hatch
44+
45+ - name : Create Hatch env
46+ run : hatch -v env create
47+
48+ - name : Run Ruff
49+ run : hatch -v run ruff check src test
50+
51+ - name : Run Black
52+ run : hatch -v run black --check --diff src test
53+
54+ - name : Run Mypy
55+ run : hatch -v run mypy src test
56+
57+ - name : Run Build
58+ run : hatch -v build
59+
60+ - name : Run Tests
61+ run : hatch run test
Original file line number Diff line number Diff line change 11[envs .default ]
22pre-install-commands = [
3- " pip install -r requirements-testing.txt"
3+ " uv pip install -r requirements-testing.txt"
44]
55
66[envs .default .scripts ]
7- sync = " pip install -r requirements-testing.txt"
7+ sync = " uv pip install -r requirements-testing.txt"
88test = " pytest test/ --cov-config pyproject.toml --ignore=test/openjd/model/benchmark {args}"
99benchmark = " pytest test/openjd/model/benchmark --no-cov {args}"
1010typing = " mypy {args:src test}"
You can’t perform that action at this time.
0 commit comments