Skip to content

Commit

Permalink
add pypi ci
Browse files Browse the repository at this point in the history
  • Loading branch information
liwt31 committed Jan 15, 2024
1 parent 0c6a760 commit 3a8fe16
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
python -m pip install --upgrade pip
pip install --no-cache-dir -r requirements.txt
pip install --no-cache-dir -r requirements-dev.txt
- name: check env
run : |
pip freeze
- name: run black
run: |
black . --check --verbose || echo "return 0"
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: publish to pypi
on: workflow_dispatch
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/tencirchem
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: "pip"
- name: Build to sdist
run: |
python setup.py sdist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 3a8fe16

Please sign in to comment.