Skip to content

Commit

Permalink
chore: merge pull request #11 from ninpnin/dev
Browse files Browse the repository at this point in the history
Automate docs
  • Loading branch information
ninpnin authored Jan 31, 2024
2 parents 4a14d18 + 4d81f79 commit 010f65d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]

steps:
- uses: actions/checkout@v2
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]

steps:
- uses: actions/checkout@v2
Expand All @@ -52,7 +52,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]

steps:
- uses: actions/checkout@v2
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,36 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]

steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - name: Set up Python ${{ matrix.python-version }}
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install pdoc
- name: Change version number on README
run: |
PYTHONPATH="$PYTHONPATH:." python tests/release.py -v ${{ github.ref }}
cat README.md
- name: Generate pdoc docs
run: |
pdoc -d google probabilistic_word_embeddings/ -o docs
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add README.md
git commit -m "Add changes"
git add docs
git commit -m "docs: update README and docs"
- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "probabilistic-word-embeddings"
version = "1.8.0"
version = "1.8.1"
description = "Probabilistic Word Embeddings for Python"
authors = ["Your Name <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 010f65d

Please sign in to comment.