Skip to content

Commit 9a01cb7

Browse files
authored
Merge pull request #14 from MaxBo/feature/py313
remove channel defaults
2 parents bd08046 + 3323267 commit 9a01cb7

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

.github/workflows/linux-conda.yml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/windows-conda.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ jobs:
3030
auto-activate-base: true
3131
activate-environment: ""
3232
miniforge-version: latest
33-
channels: conda-forge,defaults
33+
conda-remove-defaults: true
34+
channels: conda-forge
3435
env:
3536
TMPDIR: ${{ runner.TEMP }}
3637
CONDA_BLD_PATH: env.TMPDIR
3738

3839
- name: install packages into base environment
3940
run: |
4041
(
41-
mamba install -n base "conda>=23.7" conda-build conda-verify anaconda-client rattler-build twine
42+
mamba install -n base "conda>=23.7" conda-build anaconda-client rattler-build twine
4243
)
4344
4445
- name: create test environments environment for python < 3.13

0 commit comments

Comments
 (0)