Skip to content

Commit

Permalink
Merge pull request #61 from loucerac/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
loucerac authored Jul 10, 2023
2 parents b59e1ce + 7c671b9 commit 778093d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 10 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
release:
types: [published]

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
prerelease: false
enable-pep582: false
allow-python-prereleases: false
# - name: Install pypa/build
# run: >-
# python3 -m
# pip install
# build
# --user
# - name: Build a binary wheel and a source tarball
# run: >-
# python3 -m
# build
# --sdist
# --wheel
# --outdir dist/
# .
- name: Build a binary wheel and a source tarball
run: >-
pdm build
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
14 changes: 5 additions & 9 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_run:
workflows: ["CI"]
types:
- completed

jobs:
build-n-publish:
Expand Down Expand Up @@ -43,10 +43,6 @@ jobs:
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [
"zenodo-client<0.3",
]
name = "drexml"
version = "0.11.6"
version = "0.11.7"
description = "(DRExM³L) Drug REpurposing using and eXplainable Machine Learning and Mechanistic Models of signal transduction\""
readme = "README.md"

Expand Down

0 comments on commit 778093d

Please sign in to comment.