Skip to content

Commit

Permalink
Update pypi release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
atztogo committed Jul 8, 2024
1 parent 1fc542f commit e784d9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

0 comments on commit e784d9a

Please sign in to comment.