@@ -44,8 +44,8 @@ concurrency:
4444# Set the environment variables to be used in all jobs defined in this workflow
4545env :
4646 CI_BRANCH : ${{ github.head_ref || github.ref_name }}
47- PY_VERSIONS : ' 3.11 3.12 '
48- PIXI_ENVS : ' py-311 -env py-312 -env'
47+ PY_VERSIONS : ' 3.12 3.14 '
48+ PIXI_ENVS : ' py-312 -env py-314 -env'
4949
5050jobs :
5151 # Job 1: Set up environment variables
@@ -96,12 +96,27 @@ jobs:
9696 echo
9797 echo "🔹🔸🔹🔸🔹 Python: $py_ver 🔹🔸🔹🔸🔹"
9898
99- env="py-$(echo $py_ver | tr -d .)-env" # Converts 3.11 -> py-311 -env
99+ env="py-$(echo $py_ver | tr -d .)-env" # Converts 3.XX -> py-3XX -env
100100
101101 echo "Running tests in environment: $env"
102102 pixi run --environment $env unit-tests
103103 done
104104
105+ - name : Run functional tests
106+ shell : bash
107+ run : |
108+ set -euo pipefail
109+
110+ for py_ver in $PY_VERSIONS; do
111+ echo
112+ echo "🔹🔸🔹🔸🔹 Python: $py_ver 🔹🔸🔹🔸🔹"
113+
114+ env="py-$(echo $py_ver | tr -d .)-env" # Converts 3.XX -> py-3XX-env
115+
116+ echo "Running tests in environment: $env"
117+ pixi run --environment $env functional-tests
118+ done
119+
105120 - name : Run integration tests ${{ needs.env-prepare.outputs.pytest-marks }}
106121 shell : bash
107122 run : |
@@ -111,7 +126,7 @@ jobs:
111126 echo
112127 echo "🔹🔸🔹🔸🔹 Python: $py_ver 🔹🔸🔹🔸🔹"
113128
114- env="py-$(echo $py_ver | tr -d .)-env" # Converts 3.11 -> py-311 -env
129+ env="py-$(echo $py_ver | tr -d .)-env" # Converts 3.XX -> py-3XX -env
115130
116131 echo "Running tests in environment: $env"
117132 pixi run --environment $env integration-tests ${{ needs.env-prepare.outputs.pytest-marks }}
@@ -236,7 +251,26 @@ jobs:
236251 cd easydynamics_py$py_ver
237252
238253 echo "Running tests"
239- pixi run python -m pytest ../tests/unit/ --color=yes --cov= --cov-report=
254+ pixi run python -m pytest ../tests/unit/ --color=yes -v
255+
256+ echo "Exiting pixi project directory"
257+ cd ..
258+ done
259+
260+ - name : Run functional tests
261+ shell : bash
262+ run : |
263+ set -euo pipefail
264+
265+ for py_ver in $PY_VERSIONS; do
266+ echo
267+ echo "🔹🔸🔹🔸🔹 Python: $py_ver 🔹🔸🔹🔸🔹"
268+
269+ echo "Entering pixi project directory easydynamics_py$py_ver"
270+ cd easydynamics_py$py_ver
271+
272+ echo "Running tests"
273+ pixi run python -m pytest ../tests/functional/ --color=yes -v
240274
241275 echo "Exiting pixi project directory"
242276 cd ..
0 commit comments