Refactor C build #1061
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pytest with openblas | |
on: | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
# Use conda-incubator/setup-miniconda for precise control of conda infrastructure | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
- name: Install dependent packages for python > 3.9 | |
if: ${{ matrix.python-version != 3.9 }} | |
run: | | |
conda activate test | |
conda install --yes python=${{ matrix.python-version }} | |
conda install --yes matplotlib-base pyyaml "libblas=*=*openblas" openblas h5py "numpy>=2.1" scipy pytest spglib alm cmake c-compiler cxx-compiler pypolymlp | |
- name: Install dependent packages for python == 3.9 | |
if: ${{ matrix.python-version == 3.9 }} | |
run: | | |
conda activate test | |
conda install --yes python=${{ matrix.python-version }} | |
conda install --yes matplotlib-base pyyaml "libblas=*=*openblas" openblas h5py scipy pytest spglib alm cmake c-compiler cxx-compiler | |
- name: Install symfc develop branch | |
run: | | |
conda activate test | |
git clone --depth 1 https://github.com/symfc/symfc.git | |
cd symfc | |
pip install -e . -vvv | |
cd .. | |
- name: Install phonopy develop branch | |
run: | | |
conda activate test | |
git clone https://github.com/phonopy/phonopy.git | |
cd phonopy | |
pip install -e . -vvv | |
cd .. | |
- name: Install phono3py | |
run: | | |
conda activate test | |
pip install -e . -vvv | |
- name: Run pytest | |
run: | | |
conda activate test | |
pytest -v test |