Update github workflows

This commit is contained in:
Atsushi Togo 2022-02-13 20:17:37 +09:00
parent 83df1ac81d
commit 69e428df1d
3 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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')