Workaround a package-load issue on Ubuntu #84
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: 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 | |
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 | |
touch build/html/.nojekyll | |
- name: Publish to PyPi | |
if: startsWith(github.ref, 'refs/heads/master') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
- name: Publish Docs | |
if: startsWith(github.ref, 'refs/heads/master') | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build/html | |