From f8dec2c3638963cc1fec9cf20a9333f8275acd6d Mon Sep 17 00:00:00 2001 From: Ben Mather Date: Tue, 5 Dec 2023 21:42:06 +1100 Subject: [PATCH] install pdoc and update version to generate documentation --- .github/workflows/build_deploy_pdoc.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_deploy_pdoc.yml b/.github/workflows/build_deploy_pdoc.yml index 0bb566b..b958b06 100644 --- a/.github/workflows/build_deploy_pdoc.yml +++ b/.github/workflows/build_deploy_pdoc.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v2 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | @@ -23,6 +23,7 @@ jobs: pip install scipy pip install Cython pip install pdoc3 + pip install pytest - name: Install latest stripy run: | @@ -31,7 +32,7 @@ jobs: - name: Build docs with pdoc shell: bash -l {0} run: | - VERSION=`python setup.py --version` + VERSION=`python -c "from importlib.metadata import version; print(version('stripy'))"` echo "VERSION=$(echo $VERSION)" >> $GITHUB_ENV mkdir -p docs cd docs