From de976f0fe3d68411373ecea60c824b9c72bda57f Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Fri, 10 Jan 2025 12:52:11 +0000
Subject: [PATCH] See if we can build packages on Gitlab CI

---
 .gitlab-ci.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..cb6a14c
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,26 @@
+image: python:3.11
+
+variables:
+  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
+
+cache:
+  paths:
+    - .cache/pip
+
+before_script:
+  - python --version ; pip --version  # For debugging
+  - python -m venv venv
+  - source venv/bin/activate
+
+test:
+  script:
+    - pip install build auditwheel abi3audit pytest
+    - python -m build
+    - auditwheel repair dist/*.whl
+    - abi3audit -vs wheelhouse/*.whl
+    - pip install wheelhouse/*.whl
+    - pytest
+  artifacts:
+    paths:
+      - dist/*.tar.gz
+      - wheelhouse/*
-- 
GitLab