Merge pull request #232 from lifeomic/dependabot/pip/cryptography-43.0.1 #92
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: Release SDK | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: pypi | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry==1.5.1 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" # pdoc works under this version | |
cache: "poetry" | |
- run: poetry install | |
- run: | | |
poetry run poe lint | |
poetry run pytest | |
poetry run poe doc | |
- name: Publish to PyPi | |
env: | |
TWINE_USERNAME: ${{ secrets.LIFEOMIC_PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.LIFEOMIC_PYPI_TOKEN }} | |
run: | | |
./publish.sh | |
- name: Deploy Docs | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: doc/build/phc |