Skip to content

Commit

Permalink
Merge pull request #12 from CyberAgentAILab/feat/pypi
Browse files Browse the repository at this point in the history
Add workflow to publish package
  • Loading branch information
TomeHirata authored Jul 12, 2024
2 parents 3f3dcbc + 0d8f6b4 commit 2506ab4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Python Package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: |
python -m build
- name: Publish package to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*
2 changes: 1 addition & 1 deletion docs/source/get_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ A convenience function is available to visualize distribution effects. This meth
:align: center

To initialize the adjusted distribution function, the base model for conditional distribution function needs to be passed.
In the following example, we use Logistic Regression.
In the following example, we use Logistic Regression. Please make sure that your base model implements `fit` and `predict_proba` methods.

.. code-block:: python
Expand Down

0 comments on commit 2506ab4

Please sign in to comment.