diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 4c7a6483b7..9eef118a72 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -752,7 +752,7 @@ jobs: - name: Run Machete run: cargo machete --with-metadata - doctests: + docbuild: runs-on: ubuntu-latest continue-on-error: true env: @@ -787,8 +787,30 @@ jobs: run: | source activate maturin develop + + doc-tests: + runs-on: ubuntu-latest + needs: docbuild + steps: + - name: Run doctests + run: | + source activate pytest --doctest-modules --continue-on-collection-errors daft/dataframe/dataframe.py daft/expressions/expressions.py daft/convert.py daft/udf.py + doc-gen: + runs-on: ubuntu-latest + needs: docbuild + steps: + - name: Generate docs + run: | + source activate + cd docs/ + make html + - name: Upload docs + uses: actions/upload-artifact@v4 + with: + name: html-docs + path: docs/build/html publish-coverage-reports: name: Publish coverage reports to CodeCov