mirror of https://github.com/phonopy/phono3py.git
Set tests on python versions
This commit is contained in:
parent
f642b2b1d6
commit
bf2cfe0033
|
@ -9,21 +9,22 @@ jobs:
|
|||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
max-parallel: 5
|
||||
matrix:
|
||||
python-version: [3.7, 3.8, 3.9]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.8
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Add conda to system path
|
||||
run: |
|
||||
# $CONDA is an environment variable pointing to the root of the miniconda directory
|
||||
echo $CONDA/bin >> $GITHUB_PATH
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
conda install --yes -c conda-forge python=3.8
|
||||
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
|
||||
pip install https://github.com/phonopy/phonopy/archive/rc.zip --user
|
||||
- name: Set up phono3py
|
||||
|
|
|
@ -10,22 +10,23 @@ jobs:
|
|||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
max-parallel: 5
|
||||
matrix:
|
||||
python-version: [3.7, 3.8, 3.9]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.8
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Add conda to system path
|
||||
run: |
|
||||
# $CONDA is an environment variable pointing to the root of the miniconda directory
|
||||
echo $CONDA/bin >> $GITHUB_PATH
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
conda install --yes -c conda-forge python=3.8
|
||||
conda install --yes -c conda-forge matplotlib-base pyyaml openblas libgfortran gcc_linux-64 gxx_linux-64 "h5py=3.1.0" scipy pytest codecov pytest-cov spglib
|
||||
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
|
||||
pip install https://github.com/phonopy/phonopy/archive/develop.zip --user
|
||||
- name: Set up phono3py
|
||||
run: |
|
||||
|
|
|
@ -1,19 +1,24 @@
|
|||
name: publish PyPI and TestPyPI
|
||||
|
||||
on: push
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- rc
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
max-parallel: 5
|
||||
matrix:
|
||||
python-version: [3.9, ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.8
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Make sdist
|
||||
run: |
|
||||
./get_nanoversion.sh
|
||||
|
|
Loading…
Reference in New Issue