Update pypi release workflow

This commit is contained in:
Atsushi Togo 2024-07-08 17:15:52 +09:00
parent 1fc542fc8f
commit e784d9ac46
2 changed files with 6 additions and 20 deletions

View File

@ -9,30 +9,21 @@ on:
jobs:
build-linux:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.10", ]
python-version: [3.12, ]
steps:
- uses: actions/checkout@v4
# Use conda-incubator/setup-miniconda for precise control of conda infrastructure
- uses: conda-incubator/setup-miniconda@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
auto-update-conda: true
channels: conda-forge
channel-priority: strict
python-version: ${{ matrix.python-version }}
- name: Make sdist
run: |
conda activate test
conda install --yes python=${{ matrix.python-version }}
conda install --yes "libblas=*=*openblas" openblas cmake c-compiler numpy
./get_nanoversion.sh
cat __nanoversion__.txt
python setup.py sdist
git tag v`grep __version__ phono3py/version.py|awk -F'"' '{print($2)}'`
pip install build
python -m build --sdist
- name: Publish package to TestPyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/rc')
uses: pypa/gh-action-pypi-publish@release/v1

View File

@ -1,5 +0,0 @@
numpy >= 1.17.0
PyYAML >= 5.3
matplotlib >= 2.2.2
h5py >= 3.0
phonopy >=2.25,<2.26