From ee02dbc0e692c0b49aabf84e1c76cebce084b3a3 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Mon, 27 Nov 2023 15:03:21 +0100 Subject: [PATCH] Test pip no-build-isolation option --- .github/workflows/deploy.yml | 17 ++++++++++++----- .github/workflows/mini.yml | 3 ++- .github/workflows/pypicheck.yml | 3 ++- .github/workflows/unittests.yml | 3 ++- .github/workflows/unittests_old.yml | 3 ++- 5 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c62550909..471caf700 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,16 +19,23 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: conda-incubator/setup-miniconda@v2.2.0 with: - python-version: "3.11" - - name: Install dependencies - run: python -m pip install --user --upgrade ase numpy scipy setuptools versioneer wheel + python-version: 3.11 + mamba-version: "*" + channels: conda-forge + miniforge-variant: Mambaforge + channel-priority: strict + auto-update-conda: true + environment-file: .ci_support/environment.yml - name: Convert dependencies run: | cp .ci_support/environment-old.yml environment.yml python .ci_support/release.py; cat pyproject.toml - name: Build - run: python setup.py sdist bdist_wheel + shell: bash -l {0} + run: | + pip install versioneer[toml]==0.29 + python setup.py sdist bdist_wheel - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/mini.yml b/.github/workflows/mini.yml index d73d362b4..90952632e 100644 --- a/.github/workflows/mini.yml +++ b/.github/workflows/mini.yml @@ -32,5 +32,6 @@ jobs: shell: bash -l {0} timeout-minutes: 30 run: | - python -m pip install --no-deps . + pip install versioneer[toml]==0.29 + pip install . --no-deps --no-build-isolation python -m unittest discover tests diff --git a/.github/workflows/pypicheck.yml b/.github/workflows/pypicheck.yml index a52449dcc..27b93f874 100644 --- a/.github/workflows/pypicheck.yml +++ b/.github/workflows/pypicheck.yml @@ -28,5 +28,6 @@ jobs: - name: Pip check shell: bash -l {0} run: | - python -m pip install --no-deps . + pip install versioneer[toml]==0.29 + pip install . --no-deps --no-build-isolation python -m pip check \ No newline at end of file diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index df5368612..0fe2830fa 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -60,7 +60,8 @@ jobs: shell: bash -l {0} timeout-minutes: 30 run: | - python -m pip install --no-deps . + pip install versioneer[toml]==0.29 + pip install . --no-deps --no-build-isolation coverage run --omit structuretoolkit/_version.py -m unittest discover tests - name: Coverage if: matrix.label == 'linux-64-py-3-10' diff --git a/.github/workflows/unittests_old.yml b/.github/workflows/unittests_old.yml index 6060d2bf6..e4dfe694a 100644 --- a/.github/workflows/unittests_old.yml +++ b/.github/workflows/unittests_old.yml @@ -28,5 +28,6 @@ jobs: shell: bash -l {0} timeout-minutes: 30 run: | - python -m pip install --no-deps . + pip install versioneer[toml]==0.29 + pip install . --no-deps --no-build-isolation python -m unittest discover tests