Skip to content

Commit 06e9fc2

Browse files
committed
add CI on windows-latest, for Python 3.14 only
1 parent d8986a0 commit 06e9fc2

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,71 @@ jobs:
104104
run: |
105105
uv run tox -e py${{ matrix.python-version }}
106106
107+
tests-windows:
108+
name: Tests Windows
109+
runs-on: windows-latest
110+
111+
strategy:
112+
fail-fast: false
113+
matrix:
114+
python-version: ["3.14"]
115+
116+
steps:
117+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
118+
119+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
120+
with:
121+
version: "latest"
122+
123+
- name: Set up Python ${{ matrix.python-version }}
124+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
125+
with:
126+
python-version: ${{ matrix.python-version }}
127+
128+
- name: Inspect MySQL installation
129+
shell: cmd
130+
run: |
131+
dir "C:\Program Files\MySQL"
132+
dir "C:\Program Files\MySQL\MySQL Server 8.0"
133+
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld" --help --verbose
134+
135+
- name: Inspect home directory
136+
run: |
137+
$HOME
138+
139+
- name: Initialize MySQL
140+
shell: cmd
141+
run: |
142+
mkdir "C:\Users\runneradmin\mysql_data"
143+
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld" --initialize-insecure --user=root --datadir=C:\Users\runneradmin\mysql_data
144+
145+
- name: Start MySQL
146+
shell: cmd
147+
run: |
148+
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld" --port=3306 --datadir=C:\Users\runneradmin\mysql_data
149+
150+
- name: Install dependencies
151+
run: uv sync --all-extras -p ${{ matrix.python-version }}
152+
153+
# - name: Wait for MySQL connection
154+
# run: |
155+
# while ! mysqladmin ping --host=localhost --port=3306 --user=root --silent; do
156+
# sleep 5
157+
# done
158+
159+
- name: Set MySQL test credentials
160+
shell: cmd
161+
run: |
162+
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqladmin" --host=localhost --port=3306 --user=root password root
163+
164+
- name: Pytest / behave
165+
env:
166+
PYTEST_PASSWORD: root
167+
PYTEST_HOST: 127.0.0.1
168+
TERM: xterm
169+
run: |
170+
uv run tox -e py${{ matrix.python-version }}
171+
107172
test-no-extras:
108173
name: Tests Without Extras
109174
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)