mirror of https://github.com/phonopy/phono3py.git
Update github workflows
This commit is contained in:
parent
83df1ac81d
commit
69e428df1d
|
@ -1,4 +1,4 @@
|
|||
name: Python Package using Conda
|
||||
name: Python Package using Conda for rc branch
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -25,13 +25,14 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
conda install --yes -c conda-forge python=${{ matrix.python-version }}
|
||||
conda install --yes -c conda-forge matplotlib-base pyyaml openblas libgfortran gcc_linux-64 gxx_linux-64 "h5py=3.1" scipy pytest codecov pytest-cov spglib
|
||||
conda install --yes -c conda-forge matplotlib-base pyyaml openblas gcc_linux-64 h5py scipy pytest codecov pytest-cov spglib alm
|
||||
pip install https://github.com/phonopy/phonopy/archive/rc.zip --user
|
||||
- name: Set up phono3py
|
||||
run: |
|
||||
export CONDA_PREFIX=$CONDA
|
||||
echo "[phono3py]" > site.cfg
|
||||
echo "extra_compile_args = -fopenmp" >> site.cfg
|
||||
echo "extra_link_args = -lgomp" >> site.cfg
|
||||
python setup.py build
|
||||
pip install -e .
|
||||
- name: Test with pytest
|
||||
|
|
|
@ -26,13 +26,14 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
conda install --yes -c conda-forge python=${{ matrix.python-version }}
|
||||
conda install --yes -c conda-forge matplotlib-base pyyaml openblas libgfortran gcc_linux-64 gxx_linux-64 h5py scipy pytest codecov pytest-cov spglib alm
|
||||
conda install --yes -c conda-forge matplotlib-base pyyaml openblas gcc_linux-64 h5py scipy pytest codecov pytest-cov spglib alm
|
||||
pip install https://github.com/phonopy/phonopy/archive/develop.zip --user
|
||||
- name: Set up phono3py
|
||||
run: |
|
||||
export CONDA_PREFIX=$CONDA
|
||||
echo "[phono3py]" > site.cfg
|
||||
echo "extra_compile_args = -fopenmp" >> site.cfg
|
||||
echo "extra_link_args = -lgomp" >> site.cfg
|
||||
python setup.py build
|
||||
pip install -e .
|
||||
- name: Test with pytest
|
||||
|
|
|
@ -25,7 +25,6 @@ jobs:
|
|||
cat __nanoversion__.txt
|
||||
pip install numpy setuptools-scm
|
||||
echo "[phono3py]" > site.cfg
|
||||
echo "extra_compile_args = -fopenmp" >> site.cfg
|
||||
python setup.py sdist
|
||||
- name: Publish package to TestPyPI
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/rc')
|
||||
|
|
Loading…
Reference in New Issue