Remove debug messages #11
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@v4 | |
# - uses: actions/setup-python@v2 | |
# with: | |
# python-version: '3.9' | |
- name: Load Dependencies | |
run: | | |
# Install dependencies required to load ivpm.yaml file | |
python3 -m venv py | |
./py/bin/python -m pip install ivpm build twine | |
./py/bin/ivpm update -a | |
- name: Run Tests | |
run: | | |
export PYTHONPATH=$(pwd)/src | |
./packages/python/bin/python -m pytest tests | |
- name: Build Wheel | |
run: | | |
sed -i -e "s/version = \"\([0-9][0-9\.]*\)\"/version = \"\1.${GITHUB_RUN_ID}\"/" pyproject.toml | |
./py/bin/python3 -m build --wheel | |
# - 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/main') | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
run: | | |
./py/bin/python -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 | |