From f3be3a80d5931eaa356b5a595704bca5f4111aec Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 30 Jun 2024 10:06:29 +0200 Subject: [PATCH] feat: add macOS on GitLab --- .gitlab-ci.yml | 10 ++++++++++ CI.md | 2 +- examples/gitlab-minimal.yml | 12 ++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d6bc2f4eb..872d76202 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/CI.md b/CI.md index c7ee5bcb1..eb005b8d0 100644 --- a/CI.md +++ b/CI.md @@ -3,7 +3,7 @@ This is a summary of the host Python versions and platforms covered by the diffe | | 3.11 | 3.12 | 3.13 | |---------|----------------------------------|---------------------------------------------------------|----------------| | Linux | Azure Pipelines / GitHub Actions | AppVeyor¹ / CircleCI¹ / Cirrus CI / GitLab¹ / Travis CI | GitHub Actions | -| macOS | Azure Pipelines | AppVeyor¹ / CircleCI¹ / Cirrus CI / GitLab¹ / Travis CI | GitHub Actions | +| macOS | Azure Pipelines / GitLab¹ | AppVeyor¹ / CircleCI¹ / Cirrus CI / GitLab¹ / Travis CI | GitHub Actions | | Windows | Azure Pipelines | AppVeyor¹ / Cirrus CI / GitLab¹ / Travis CI | GitHub Actions | > ¹ Runs a reduced set of tests to reduce CI load diff --git a/examples/gitlab-minimal.yml b/examples/gitlab-minimal.yml index 7c16683ef..ceade6617 100644 --- a/examples/gitlab-minimal.yml +++ b/examples/gitlab-minimal.yml @@ -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