From 5c53c0657306fcd3dbd1256829bf690c2f1c9b53 Mon Sep 17 00:00:00 2001
From: Amaury Bilocq <amaurybilocq@mac.home>
Date: Fri, 21 Feb 2025 22:52:30 +0100
Subject: [PATCH] Add ci/cd to the project

---
 .gitlab-ci.yml | 12 ++++++++++++
 pyproject.toml | 20 ++++++++++++++++++--
 2 files changed, 30 insertions(+), 2 deletions(-)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..b068635
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,12 @@
+image: python:3.12
+
+stages:
+  - test
+
+pytest:
+  stage: test
+  before_script:
+    - pip install --upgrade pip
+    - pip install -e .
+  script:
+    - pytest
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index 5112eeb..88b0b1e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,12 +5,28 @@ build-backend = "setuptools.build_meta"
 [project]
 name = "pyTurbulence"
 version = "0.1.0"
-description = "Generator of solenoidal velocity and pressure fieds for turbulent flows"
+description = "Generator of solenoidal velocity and pressure fields for turbulent flows"
 authors = [
     {name = "Amaury", email = "amaury.bilocq@uliege.be"}
 ]
 license = {text = "MIT"}
 readme = "README.md"
 requires-python = ">=3.6"
+
 dependencies = [
-]
\ No newline at end of file
+    "numpy>=1.21",  # Required for numerical computations
+    "numba>=0.56",  # For JIT optimization
+    "pytest>=7.0"   # For testing
+]
+
+[project.optional-dependencies]
+dev = [
+    "pytest-cov"  # Adds code coverage support for pytest
+]
+
+[tool.pytest.ini_options]
+addopts = "--maxfail=0 --disable-warnings"
+testpaths = ["tests"]
+
+[tool.setuptools]
+packages = ["pyTurbulence"]
\ No newline at end of file
-- 
GitLab