Skip to content

Commit

Permalink
Use mock release
Browse files Browse the repository at this point in the history
  • Loading branch information
liamhuber committed May 15, 2024
1 parent 4ea4638 commit 850184c
Showing 1 changed file with 7 additions and 50 deletions.
57 changes: 7 additions & 50 deletions .github/workflows/preview_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,11 @@ name: Preview Release
on:
pull_request:


jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.10'
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/dummy.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
# - uses: pyiron/actions/update-pyproject-dependencies@main
# with:
# lower-bound-yaml: .ci_support/lower_bound.yml
# semantic-upper-bound: minor
# pypi-to-conda-name-map-file: .ci_support/pypi_vs_conda_names.json
# - name: Preview
# shell: bash -l {0}
# run: |
# cat pyproject.toml
- name: Build
shell: bash -l {0}
run: |
python setup.py sdist bdist_wheel
pyiron:
uses: pyiron/actions/.github/workflows/pyproject-release.yml@mock_release
secrets: inherit
with:
semantic-upper-bound: 'minor'
lower-bound-yaml: '.ci_support/lower_bound.yml'
publish-to-pypi: false

0 comments on commit 850184c

Please sign in to comment.