Skip to content

XX

XX #3

Workflow file for this run

name: CI
on:
- push
- pull_request
- workflow_dispatch
jobs:
ci-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Python
run: |
# Install dependencies required to load ivpm.yaml file
python3 -m venv packages/python
./packages/python/bin/python -m pip install ivpm setuptools build --upgrade
./packages/python/bin/python3 -m ivpm update -a
# - name: Run Tests
# run: |
# export PYTHONPATH=$(pwd)/src:$(pwd)/test
# cd test
# ../packages/python/bin/python3 -m unittest
- name: Build Package
run: |
sed -i -e "s/version = \"\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)\"/version = \"\1.${GITHUB_RUN_ID}a1\"/g" pyproject.toml
./packages/python/bin/python3 -m build .
- name: Build Docs
run: |
cd docs
make html
cp ../src/dv_flow_mgr/share/flow.json _build/html/
touch _build/html/.nojekyll
- name: Publish to PyPi
if: ${{ startsWith(github.ref, 'refs/heads/main') }}
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/main') }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/_build/html