Skip to content

Commit

Permalink
Merge pull request #84 from pyiron/no-build-isolation
Browse files Browse the repository at this point in the history
Test pip no-build-isolation option
  • Loading branch information
jan-janssen authored Nov 27, 2023
2 parents 052a757 + eca3ccf commit ff8660f
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 28 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,23 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: conda-incubator/setup-[email protected]
with:
python-version: "3.11"
- name: Install dependencies
run: python -m pip install --user --upgrade ase numpy scipy setuptools spglib 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
3 changes: 2 additions & 1 deletion .github/workflows/minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ jobs:
shell: bash -l {0}
timeout-minutes: 30
run: |
pip install --no-deps .
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest discover tests
7 changes: 4 additions & 3 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Merge Notebook environment
run: |
cp .ci_support/environment.yml environment.yml
tail --lines=+4 .ci_support/environment-abinit.yml >> environment.yml
tail --lines=+4 .ci_support/environment-notebooks.yml >> environment.yml
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -30,5 +30,6 @@ jobs:
- name: Test
shell: bash -l {0}
run: |
pip install --no-deps .
./.ci_support/build_notebooks.sh
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
./.ci_support/build_notebooks.sh
12 changes: 0 additions & 12 deletions .github/workflows/pr-labeled.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/pypicheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ jobs:
- name: Pip check
shell: bash -l {0}
run: |
pip install --no-deps .
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
pip check
3 changes: 2 additions & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ jobs:
shell: bash -l {0}
timeout-minutes: 30
run: |
pip install --no-deps .
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
coverage run --omit atomistics/_version.py -m unittest discover tests
coverage combine
- name: Coveralls
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/unittests_abinit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
shell: bash -l {0}
timeout-minutes: 30
run: |
pip install --no-deps .
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest tests/test_evcurve_abinit.py
env:
ABINIT_PP_PATH: '/usr/share/miniconda3/envs/my-env/share/abinit/LDA_FHI'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/unittests_gpaw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
shell: bash -l {0}
timeout-minutes: 30
run: |
pip install --no-deps .
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest tests/test_evcurve_gpaw.py
python -m unittest tests/test_elastic_gpaw.py
python -m unittest tests/test_phonons_gpaw.py
3 changes: 2 additions & 1 deletion .github/workflows/unittests_old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ jobs:
shell: bash -l {0}
timeout-minutes: 30
run: |
pip install --no-deps .
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest discover tests
3 changes: 2 additions & 1 deletion .github/workflows/unittests_qe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
shell: bash -l {0}
timeout-minutes: 30
run: |
pip install --no-deps .
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest tests/test_evcurve_qe.py
env:
ASE_ESPRESSO_COMMAND: "mpirun -np 1 pw.x -in PREFIX.pwi > PREFIX.pwo"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/unittests_siesta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ jobs:
shell: bash -l {0}
timeout-minutes: 30
run: |
pip install --no-deps .
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest tests/test_evcurve_siesta.py

0 comments on commit ff8660f

Please sign in to comment.