more flexible cached_member decorator (#187) #81
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: Publish package | |
on: | |
push: | |
branches: [master] | |
tags: ['v*'] | |
workflow_dispatch: | |
jobs: | |
publish_pypi: | |
name: Publish 📦 to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
sudo apt-get install libopenblas-base | |
python -m pip install --user pyscf cppe wheel | |
python -m pip install --user -r requirements.txt | |
- name: Install package | |
run: | | |
python -m pip install --user .[tests] | |
- name: Run python tests | |
run: | | |
python -m pytest adcc | |
- name: Build a source tarball | |
# in the future... | |
# run: python -m build --sdist | |
run: python setup.py sdist | |
- name: Publish distribution 📦 to PyPI | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} |