Skip to content

Commit

Permalink
use 'dist' session
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Mortari <[email protected]>
  • Loading branch information
tarilabs committed Sep 6, 2024
1 parent 987c1cc commit fee9326
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
python: ["3.12"]
session: [lint, tests, mypy, docs-build]
session: [lint, tests, mypy, docs-build, dist]
include:
- python: "3.9"
session: tests
Expand Down Expand Up @@ -70,12 +70,13 @@ jobs:
elif [[ ${{ matrix.session }} == "mypy" ]]; then
nox --python=${{ matrix.python }} ||\
echo "::error title='mypy failure'::Check the logs for more details"
elif [[ ${{ matrix.session }} == "dist" ]]; then
poetry build
else
nox --python=${{ matrix.python }}
poetry build
fi
- name: Upload dist
if: matrix.session == 'lint'
if: matrix.session == 'dist'
uses: actions/upload-artifact@v4
with:
name: py-dist
Expand Down

0 comments on commit fee9326

Please sign in to comment.