Skip to content

Commit

Permalink
gha: provide py dist as gh artifact (kubeflow#352)
Browse files Browse the repository at this point in the history
* gha: provide py dist as gh artifact

Signed-off-by: Matteo Mortari <[email protected]>

* use 'dist' session

Signed-off-by: Matteo Mortari <[email protected]>

* bind to 'tests' session only for 3.12

Signed-off-by: Matteo Mortari <[email protected]>

---------

Signed-off-by: Matteo Mortari <[email protected]>
  • Loading branch information
tarilabs authored Sep 6, 2024
1 parent 327e865 commit 2b1ad4b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,22 @@ jobs:
if [[ ${{ matrix.session }} == "tests" ]]; then
make build-mr
nox --python=${{ matrix.python }} -- --cov-report=xml
poetry build
elif [[ ${{ matrix.session }} == "mypy" ]]; then
nox --python=${{ matrix.python }} ||\
echo "::error title='mypy failure'::Check the logs for more details"
else
nox --python=${{ matrix.python }}
fi
- name: Upload dist
if: matrix.session == 'tests' && matrix.python == '3.12'
uses: actions/upload-artifact@v4
with:
name: py-dist
path: clients/python/dist
- name: Upload documentation
if: matrix.session == 'docs-build'
uses: actions/upload-artifact@v4
with:
name: docs
name: py-docs
path: clients/python/docs/_build

0 comments on commit 2b1ad4b

Please sign in to comment.