diff --git a/.github/workflows/preview_release.yml b/.github/workflows/preview_release.yml index 05b00f290..7268334a8 100644 --- a/.github/workflows/preview_release.yml +++ b/.github/workflows/preview_release.yml @@ -10,24 +10,53 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/cached-miniforge@no_build_isolation + - name: Setup Mambaforge + uses: conda-incubator/setup-miniconda@v3 with: - python-version: '3.10' - env-files: .ci_support/environment.yml + python-version: '3.12' + miniforge-variant: Mambaforge + miniforge-version: latest + channels: conda-forge + channel-priority: strict + activate-environment: my-env + use-mamba: true + - name: Update environment + shell: bash -l {0} + run: mamba env update -n my-env -f .ci_support/environment.yml + - name: Conda list + shell: bash -l {0} + run: conda list + - name: Peek + shell: bash -l {0} + run: | + which pip + which python + ls + cat pyproject.toml + cat setup.py + - name: Install versioneer + shell: bash -l {0} + run: | + pip install versioneer[toml]==0.29 + - name: Install local code without build isolation + shell: bash -l {0} + run: | + pip install --no-deps . --no-build-isolation + - name: Install local code with build isolation + if: inputs.no-build-isolation != 'true' + shell: bash -l {0} + run: | + pip install --no-deps ${{ inputs.local-code-directory }} - uses: pyiron/actions/update-pyproject-dependencies@main with: lower-bound-yaml: .ci_support/lower_bound.yml semantic-upper-bound: minor - output-toml: preview.toml pypi-to-conda-name-map-file: .ci_support/pypi_vs_conda_names.json - name: Preview shell: bash -l {0} run: | - cat preview.toml - which pip - which python + cat pyproject.toml - name: Build shell: bash -l {0} run: | - pip install versioneer[toml]==0.29 python setup.py sdist bdist_wheel \ No newline at end of file