@@ -19,19 +19,24 @@ jobs:
1919 python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
2020 steps :
2121 - uses : actions/checkout@v4
22- - name : Setup base conda for Python 3.11
23- uses : s-weigand /setup-conda@v1
22+ - name : Setup base conda
23+ uses : conda-incubator /setup-miniconda@v3
2424 with :
25- update-conda : true
26- python-version : 3.11
27- conda-channels : MaxBo, conda-forge, defaults
25+ python-version : 3.12
26+ auto-activate-base : true
27+ activate-environment : true
28+ miniforge-version : latest
29+ mamba-version : " *"
30+ channels : MaxBo, conda-forge
31+ conda-remove-defaults : true
2832
2933 - name : Install dependencies and set channels
3034 run : |
31- conda install conda-build conda-verify anaconda-client twine readme_renderer
32- conda create -q -n test-environment python=${{ matrix.python-version }}
35+ mamba install conda-build anaconda-client twine readme_renderer
36+ mamba create -q -n test-environment python=${{ matrix.python-version }}
3337
3438 - name : Build wheel and run tests for cythonarrays
39+ shell : bash -el {0}
3540 run : |
3641 (
3742 eval "$($CONDA_EXE shell.bash activate test-environment)"
@@ -45,22 +50,22 @@ jobs:
4550 echo "### All tests with pip passed! :rocket:" >> $GITHUB_STEP_SUMMARY
4651 )
4752
53+ - name : Build and test cythonarrays
54+ run : |
55+ export TMPDIR=${{ runner.TEMP }}
56+ export CONDA_BLD_PATH=$TMPDIR
57+ conda build --python ${{ matrix.python-version }} cythonarrays/conda.recipe
58+
4859 - name : Create Docs
4960 if : ${{ matrix.python-version == '3.12' }}
5061 run : |
51- eval "$($CONDA_EXE shell.bash activate test-environment )"
52- which python
62+ eval "$(mamba shell hook --shell bash )"
63+ mamba activate test-environment
5364 cd cythonarrays
5465 pip install sphinx sphinxcontrib-napoleon sphinx-autodoc-typehints 'mistune<2' m2r2 'docutils<0.20' pytest
5566 sphinx-apidoc -f --separate -o docs_rst/cythonarrays src/cythonarrays
5667 sphinx-build docs_rst ../docs
5768
58- - name : Build and test cythonarrays
59- run : |
60- export TMPDIR=${{ runner.TEMP }}
61- export CONDA_BLD_PATH=$TMPDIR
62- conda build --python ${{ matrix.python-version }} cythonarrays/conda.recipe
63-
6469 - name : Deploy Docs to gh-pages
6570 if : ${{ matrix.python-version == '3.12' && github.ref == 'refs/heads/master' }}
6671 uses : JamesIves/github-pages-deploy-action@v4
@@ -69,12 +74,13 @@ jobs:
6974 folder : docs # The folder the action should deploy.
7075
7176 - name : Upload files for cythonarrays
77+ shell : bash -el {0}
7278 env :
7379 ANACONDA_TOKEN : ${{ secrets.ANACONDA_GITHUBACTION_TOKEN }}
7480 ANACONDA_USERNAME : MaxBo
7581 CONDA_BLD_PATH : ${{ runner.TEMP }}
7682
7783 run : |
78- /usr/share/miniconda/bin/conda shell.bash activate test-environment
79- export PATH=$HOME/.local/bin:$PATH
84+ eval "$(mamba shell hook --shell bash)"
85+ mamba activate base
8086 anaconda -t $ANACONDA_TOKEN upload --skip-existing --user $ANACONDA_USERNAME $CONDA_BLD_PATH/linux-64/cythonarrays-*.conda
0 commit comments