Skip to content

Commit

Permalink
feat: add macOS on GitLab (#1911)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut authored Jun 30, 2024
1 parent 31de15b commit 6a36f64
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@ windows:
- py bin\run_tests.py
tags:
- saas-windows-medium-amd64

macos:
image: macos-14-xcode-15
variables:
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
script:
- python3 -m pip install -e ".[dev]" pytest-custom-exit-code
- python3 ./bin/run_tests.py
tags:
- saas-macos-medium-m1
10 changes: 5 additions & 5 deletions CI.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
This is a summary of the host Python versions and platforms covered by the different CI platforms:

| | 3.8 | 3.9 | 3.10 | 3.12 |
|---------|----------------------------------------------|-----------|-----------|--------------------------------------|
| Linux | AppVeyor¹ / Azure Pipelines / GitHub Actions | Travis CI | Cirrus CI | CircleCI¹ / GitHub Actions / GitLab¹ |
| macOS | AppVeyor¹ / Azure Pipelines | | Cirrus CI | CircleCI¹ / GitHub Actions |
| Windows | AppVeyor¹ / Azure Pipelines | Travis CI | Cirrus CI | GitHub Actions / GitLab¹ |
| | 3.8 | 3.9 | 3.10 | 3.11 | 3.12 |
|---------|----------------------------------------------|-----------|-----------|---------|--------------------------------------|
| Linux | AppVeyor¹ / Azure Pipelines / GitHub Actions | Travis CI | Cirrus CI | | CircleCI¹ / GitHub Actions / GitLab¹ |
| macOS | AppVeyor¹ / Azure Pipelines | | Cirrus CI | GitLab¹ | CircleCI¹ / GitHub Actions |
| Windows | AppVeyor¹ / Azure Pipelines | Travis CI | Cirrus CI | | GitHub Actions / GitLab¹ |

> ¹ Runs a reduced set of tests to reduce CI load
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Usage
| Travis CI || ||| | |
| AppVeyor |||| || ✅² |
| CircleCI ||| ||| |
| Gitlab CI || || ✅¹ | | |
| Gitlab CI || || ✅¹ | | |
| Cirrus CI |||||| |

<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>
Expand Down
12 changes: 12 additions & 0 deletions examples/gitlab-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,15 @@ windows:
- wheelhouse/
tags:
- saas-windows-medium-amd64

macos:
image: macos-14-xcode-15
before_script:
- python3 -m pip install cibuildwheel==2.19.1
script:
- python3 -m cibuildwheel --output-dir wheelhouse
artifacts:
paths:
- wheelhouse/
tags:
- saas-macos-medium-m1

0 comments on commit 6a36f64

Please sign in to comment.