Skip to content

Add options to enable installation of pre-release packages #138

Add options to enable installation of pre-release packages

Add options to enable installation of pre-release packages #138

Workflow file for this run

name: CI
on:
- push
- pull_request
- workflow_dispatch
jobs:
ci-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Configure Python
run: |
# Install dependencies required to load ivpm.yaml file
python3 -m pip install pyyaml pyyaml-srcinfo-loader toposort requirements-parser twine
export PYTHONPATH=./src
python3 -m ivpm update
./packages/python/bin/python3 -m pip install setuptools --upgrade
echo "BUILD_NUM=$GITHUB_RUN_ID" > src/ivpm/__build_num__.py
./packages/python/bin/python3 setup.py bdist_wheel --universal
- name: Build Docs
run: |
./packages/python/bin/sphinx-build -M html ./doc/source build
cp src/ivpm/schema/ivpm.json build/html/ivpm.json
touch build/html/.nojekyll
- name: Publish to PyPi
if: startsWith(github.ref, 'refs/heads/master')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
shell: bash
run: |
python3 -m twine upload dist/*.whl
- name: Publish Docs
if: startsWith(github.ref, 'refs/heads/master')
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
branch: gh-pages
folder: build/html