Skip to content

Commit 73ff680

Browse files
committed
Added python version to workflow matrix
Attemp to fix jinja syntax in conda recipe
1 parent 3784fe9 commit 73ff680

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/test-suite.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest, windows-latest]
1717
python-install: [pip]
18+
python-version: [3.11]
1819
with-yggdrasil: [true]
1920
include:
2021
- os: ubuntu-latest
@@ -46,6 +47,13 @@ jobs:
4647
brew install doxygen
4748
- name: Setup Python
4849
uses: actions/setup-python@v6
50+
with:
51+
python-version: ${{ matrix.python-version }}
52+
- name: Check Python environment variables
53+
shell: bash -l {0}
54+
run: |
55+
echo "pythonLocation=${pythonLocation}"
56+
echo "Python3_ROOT_DIR=${Python3_ROOT_DIR}"
4957
- name: Fix Python path on mac
5058
if: matrix.os == 'macos-latest'
5159
run: |
@@ -88,6 +96,7 @@ jobs:
8896
matrix:
8997
os: [ubuntu-latest, macos-latest, windows-latest]
9098
python-install: [conda]
99+
python-version: [3.11]
91100
with-yggdrasil: [true]
92101
fail-fast: false
93102
defaults:
@@ -119,6 +128,7 @@ jobs:
119128
miniforge-version: latest
120129
use-mamba: true
121130
conda-remove-defaults: true
131+
python-version: ${{ matrix.python-version }}
122132
- name: Install packages not current on conda-forge (gcovr)
123133
run: |
124134
pip install gcovr

recipe/meta.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ context:
33
version: 1.1.0
44

55
package:
6-
name: {{ name|lower }}
7-
version: {{ version }}
6+
name: ${{ name|lower }}
7+
version: ${{ version }}
88

99
source:
1010
path: ../
@@ -17,10 +17,10 @@ requirements:
1717
- cmake
1818
- ninja
1919
- python # [build_platform != target_platform]
20-
- cross-python_{{ target_platform }} # [build_platform != target_platform]
21-
- {{ stdlib('c') }}
22-
- {{ compiler('c') }}
23-
- {{ compiler('cxx') }}
20+
- cross-python_${{ target_platform }} # [build_platform != target_platform]
21+
- ${{ stdlib('c') }}
22+
- ${{ compiler('c') }}
23+
- ${{ compiler('cxx') }}
2424
host:
2525
- python
2626
run:

0 commit comments

Comments
 (0)