From 32b4c9e9b1c33290c185d4e81fd31dbf2ed235ef Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 30 Jun 2024 13:55:27 +0200 Subject: [PATCH] CI: build and upload sdist/wheel --- .github/workflows/test.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07a68bd1..bfc34ce5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,6 +33,7 @@ jobs: - os: ubuntu-latest python-version: 3.11 build-docs: true + build-dist: true steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -52,7 +53,7 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade poetry + python -m pip install --upgrade poetry build poetry install - name: Run tests run: | @@ -71,4 +72,14 @@ jobs: - name: Build docs if: matrix.build-docs run: | - poetry run sphinx-build -W -a -E -b html -n docs docs/_build \ No newline at end of file + poetry run sphinx-build -W -a -E -b html -n docs docs/_build + - name: Build dist + if: matrix.build-dist + run: | + python -m build + - name: Upload dist + if: matrix.build-dist + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist/*