Skip to content

Commit 6a36f64

Browse files
authored
feat: add macOS on GitLab (#1911)
1 parent 31de15b commit 6a36f64

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

.gitlab-ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ windows:
2929
- py bin\run_tests.py
3030
tags:
3131
- saas-windows-medium-amd64
32+
33+
macos:
34+
image: macos-14-xcode-15
35+
variables:
36+
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
37+
script:
38+
- python3 -m pip install -e ".[dev]" pytest-custom-exit-code
39+
- python3 ./bin/run_tests.py
40+
tags:
41+
- saas-macos-medium-m1

CI.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
This is a summary of the host Python versions and platforms covered by the different CI platforms:
22

3-
| | 3.8 | 3.9 | 3.10 | 3.12 |
4-
|---------|----------------------------------------------|-----------|-----------|--------------------------------------|
5-
| Linux | AppVeyor¹ / Azure Pipelines / GitHub Actions | Travis CI | Cirrus CI | CircleCI¹ / GitHub Actions / GitLab¹ |
6-
| macOS | AppVeyor¹ / Azure Pipelines | | Cirrus CI | CircleCI¹ / GitHub Actions |
7-
| Windows | AppVeyor¹ / Azure Pipelines | Travis CI | Cirrus CI | GitHub Actions / GitLab¹ |
3+
| | 3.8 | 3.9 | 3.10 | 3.11 | 3.12 |
4+
|---------|----------------------------------------------|-----------|-----------|---------|--------------------------------------|
5+
| Linux | AppVeyor¹ / Azure Pipelines / GitHub Actions | Travis CI | Cirrus CI | | CircleCI¹ / GitHub Actions / GitLab¹ |
6+
| macOS | AppVeyor¹ / Azure Pipelines | | Cirrus CI | GitLab¹ | CircleCI¹ / GitHub Actions |
7+
| Windows | AppVeyor¹ / Azure Pipelines | Travis CI | Cirrus CI | | GitHub Actions / GitLab¹ |
88

99
> ¹ Runs a reduced set of tests to reduce CI load
1010

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Usage
6161
| Travis CI || ||| | |
6262
| AppVeyor |||| || ✅² |
6363
| CircleCI ||| ||| |
64-
| Gitlab CI || || ✅¹ | | |
64+
| Gitlab CI || || ✅¹ | | |
6565
| Cirrus CI |||||| |
6666

6767
<sup[Requires emulation](https://cibuildwheel.pypa.io/en/stable/faq/#emulation), distributed separately. Other services may also support Linux ARM through emulation or third-party build hosts, but these are not tested in our CI.</sup><br>

examples/gitlab-minimal.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,15 @@ windows:
3131
- wheelhouse/
3232
tags:
3333
- saas-windows-medium-amd64
34+
35+
macos:
36+
image: macos-14-xcode-15
37+
before_script:
38+
- python3 -m pip install cibuildwheel==2.19.1
39+
script:
40+
- python3 -m cibuildwheel --output-dir wheelhouse
41+
artifacts:
42+
paths:
43+
- wheelhouse/
44+
tags:
45+
- saas-macos-medium-m1

0 commit comments

Comments
 (0)