diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index ed1ec76..7b6b92b 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -15,13 +15,19 @@ jobs: os: ["ubuntu-latest", "macos-latest", "windows-latest"] python-version: ["3.8", "3.9", "3.10"] + defaults: # Needed for conda + run: + shell: bash -l {0} + steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 + - uses: conda-incubator/setup-miniconda@v3 with: python-version: ${{ matrix.python-version }} + mamba-version: "*" + miniforge-variant: Mambaforge + channels: acellera,conda-forge,defaults - name: Install dependencies run: | @@ -56,6 +62,6 @@ jobs: - name: Build and publish conda package run: | - $CONDA/bin/conda install anaconda-client conda-build -y -q - $CONDA/bin/conda build --python ${{ matrix.python-version }} --no-include-recipe package/jobqueues -c acellera - $CONDA/bin/anaconda -t ${{ secrets.ANACONDA_TOKEN_BASIC }} upload -u acellera $CONDA/conda-bld/linux-64/jobqueues-*.tar.bz2 + conda install anaconda-client conda-build -y -q + conda build --python ${{ matrix.python-version }} --output-folder ./pkg/ --no-include-recipe --no-anaconda-upload package/jobqueues -c acellera + anaconda -t ${{ secrets.ANACONDA_TOKEN_BASIC }} upload -u acellera ./pkg/*/jobqueues-*.tar.bz2