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"