Skip to content

Commit 1993229

Browse files
committed
test: temp on D:
Signed-off-by: Morgan Epp <60796713+epmog@users.noreply.github.com>
1 parent 3fb783d commit 1993229

File tree

2 files changed

+63
-2
lines changed

2 files changed

+63
-2
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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

hatch.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[envs.default]
22
pre-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"
88
test = "pytest test/ --cov-config pyproject.toml --ignore=test/openjd/model/benchmark {args}"
99
benchmark = "pytest test/openjd/model/benchmark --no-cov {args}"
1010
typing = "mypy {args:src test}"

0 commit comments

Comments
 (0)