1717 matrix :
1818 os : [ubuntu-latest, macos-latest, windows-latest]
1919 python-version : ["3.11"]
20+ builder : [conda]
21+ target-platform : [none]
22+ include :
23+ - os : ubuntu-latest
24+ target-platform : linux-64
25+ python-version : " 3.11"
26+ builder : rattler
27+ - os : macos-latest
28+ target-platform : osx-arm64
29+ python-version : " 3.11"
30+ builder : rattler
31+ - os : windows-latest
32+ target-platform : win-64
33+ python-version : " 3.11"
34+ builder : rattler
2035 fail-fast : false
2136 steps :
2237 - name : Check out repository code
@@ -41,18 +56,26 @@ jobs:
4156 miniforge-version : latest
4257 conda-remove-defaults : true
4358 - name : Install conda-build
59+ if : matrix.builder == 'conda'
4460 run : |
4561 conda info
4662 conda list
4763 conda install conda-build cmake numpy -y
48- - name : Check conda installation
64+ - name : Check conda installation & create test environment
4965 run : |
5066 conda info
5167 conda list
5268 conda create -n test python=${{ matrix.python-version }}
53- - name : Build conda recipe
69+ - name : Build conda recipe (using conda-build)
70+ if : matrix.builder == 'conda'
5471 run : |
5572 conda-build --use-local --no-anaconda-upload --output-folder ./local_channel/ --python ${{ matrix.python-version }} recipe/
73+ - name : Build conda recipe (using rattler-build action)
74+ uses : prefix-dev/rattler-build-action@v0.2.34
75+ if : matrix.builder == 'rattler'
76+ with :
77+ upload-artifact : false
78+ build-args : --output-dir ./local_channel/ --target-platform ${{ matrix.target-platform }}
5679 - name : Install from local conda recipe
5780 run : |
5881 conda install -n test -c ./local_channel yggdrasil-python-rapidjson
6386 # ##################################
6487 - name : Run tests
6588 run : |
66- conda run -n test pytest -svx tests
89+ conda run -n test pytest -sv tests
0 commit comments