Skip to content

Commit 0bb1a05

Browse files
committed
correct macOS CI setup
The OS matrix previously configured would be ignored.
1 parent 2e6ebbb commit 0bb1a05

1 file changed

Lines changed: 50 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
os: [ubuntu-latest, macos-latest]
2322
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
24-
exclude:
25-
- os: macos-latest
26-
python-version: '3.10'
27-
- os: macos-latest
28-
python-version: '3.11'
29-
- os: macos-latest
30-
python-version: '3.12'
31-
- os: macos-latest
32-
python-version: '3.13'
3323

3424
steps:
3525
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -64,6 +54,56 @@ jobs:
6454
run: |
6555
uv run tox -e py${{ matrix.python-version }}
6656
57+
tests-macos:
58+
name: Tests macOS
59+
runs-on: macos-latest
60+
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
python-version: ["3.14"]
65+
66+
steps:
67+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
68+
69+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
70+
with:
71+
version: "latest"
72+
73+
- name: Set up Python ${{ matrix.python-version }}
74+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
75+
with:
76+
python-version: ${{ matrix.python-version }}
77+
78+
- name: Set up MySQL
79+
run: |
80+
brew install mysql
81+
82+
- name: Start MySQL
83+
run: |
84+
brew services start mysql
85+
86+
- name: Install dependencies
87+
run: uv sync --all-extras -p ${{ matrix.python-version }}
88+
89+
- name: Wait for MySQL connection
90+
run: |
91+
while ! mysqladmin ping --host=localhost --port=3306 --user=root --silent; do
92+
sleep 5
93+
done
94+
95+
- name: Set MySQL test credentials
96+
run: |
97+
$(brew --prefix mysql)/bin/mysqladmin --host=localhost --port=3306 --user=root password root
98+
99+
- name: Pytest / behave
100+
env:
101+
PYTEST_PASSWORD: root
102+
PYTEST_HOST: 127.0.0.1
103+
TERM: xterm
104+
run: |
105+
uv run tox -e py${{ matrix.python-version }}
106+
67107
test-no-extras:
68108
name: Tests Without Extras
69109
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)