From e236e48447f168ec99ab082359d7e0d2db6953ec Mon Sep 17 00:00:00 2001 From: Martin Lang Date: Tue, 9 Jul 2024 16:22:25 +0200 Subject: [PATCH] Test Python 3.8 and 3.10 --- .github/environment.yml | 2 +- .github/workflows/workflow-gpu.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/environment.yml b/.github/environment.yml index 89392b5..d082bc4 100644 --- a/.github/environment.yml +++ b/.github/environment.yml @@ -4,7 +4,7 @@ channels: - conda-forge dependencies: - - python==3.8 + - python==PYTHON_VERSION - pip - oommf - pip: diff --git a/.github/workflows/workflow-gpu.yml b/.github/workflows/workflow-gpu.yml index 0a1926a..d16aee3 100644 --- a/.github/workflows/workflow-gpu.yml +++ b/.github/workflows/workflow-gpu.yml @@ -64,6 +64,9 @@ jobs: defaults: run: shell: bash -i {0} + strategy: + matrix: + python-version: ["3.8", "3.10"] steps: - name: Initialisation @@ -73,6 +76,10 @@ jobs: pwd echo $PATH which conda + + - name: Prepare env file + run: sed -i "s/PYTHON_VERSION/$python-version/g" .github/environment.yml + - name: Create conda env run: conda env create -f ".github/environment.yml"