-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update github workflows and add multithreaded blas test for phph-calc
- Loading branch information
Showing
5 changed files
with
98 additions
and
24 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
.github/workflows/phono3py-pytest-conda-mkl-phphmtblas.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Pytest with mkl sing BLAS for phph-calc | ||
|
||
on: | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
matrix: | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
# Use conda-incubator/setup-miniconda for precise control of conda infrastructure | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-version: latest | ||
- name: Install dependent packages | ||
run: | | ||
conda activate test | ||
conda install --yes python=${{ matrix.python-version }} | ||
#conda install --yes matplotlib-base pyyaml "libblas=*=*openblas" openblas h5py scipy pytest codecov pytest-cov spglib alm cmake c-compiler | ||
conda install --yes matplotlib-base pyyaml "libblas=*=*mkl" mkl-include h5py scipy pytest codecov pytest-cov spglib alm cmake c-compiler | ||
- name: Install phonopy develop branch | ||
run: | | ||
conda activate test | ||
git clone --depth 1 https://github.com/phonopy/phonopy.git | ||
cd phonopy | ||
PHONOPY_USE_OPENMP=true pip install -e . -vvv | ||
cd .. | ||
- name: Install phono3py | ||
run: | | ||
conda activate test | ||
PHPHCALC_USE_MTBLAS=true pip install -e . -vvv | ||
- name: Run pytest | ||
run: | | ||
pytest -v --cov=./ --cov-report=xml test | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
verbose: true |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Pytest with openblas using BLAS for phph-calc | ||
|
||
on: | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
matrix: | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
# Use conda-incubator/setup-miniconda for precise control of conda infrastructure | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-version: latest | ||
- name: Install dependent packages | ||
run: | | ||
conda activate test | ||
conda install --yes python=${{ matrix.python-version }} | ||
conda install --yes matplotlib-base pyyaml "libblas=*=*openblas" openblas h5py scipy pytest codecov pytest-cov spglib alm cmake c-compiler | ||
#conda install --yes matplotlib-base pyyaml "libblas=*=*mkl" mkl-include h5py scipy pytest codecov pytest-cov spglib alm cmake c-compiler | ||
- name: Install phonopy develop branch | ||
run: | | ||
conda activate test | ||
git clone --depth 1 https://github.com/phonopy/phonopy.git | ||
cd phonopy | ||
PHONOPY_USE_OPENMP=true pip install -e . -vvv | ||
cd .. | ||
- name: Install phono3py | ||
run: | | ||
conda activate test | ||
PHPHCALC_USE_MTBLAS=true pip install -e . -vvv | ||
- name: Run pytest | ||
run: | | ||
pytest -v --cov=./ --cov-report=xml test | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
verbose: true |
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