From 541f4fa804abce5a6d82282156ad4e05f26a406a Mon Sep 17 00:00:00 2001 From: Malte Londschien Date: Mon, 16 Sep 2024 11:14:33 +0200 Subject: [PATCH] Fix ci. --- .github/workflows/build.yaml | 27 +++++++++++++++++++++++++++ .github/workflows/ci.yaml | 4 +++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6131c97..f084fae 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,6 +27,33 @@ jobs: with: repository-url: https://test.pypi.org/legacy/ + python-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + name: Install Python + with: + python-version: '3.10' + + - name: Install build dependencies + run: python -m pip install build + + - name: Build source distribution and wheel + run: python -m build --sdist --wheel + + - name: Install wheel + run: python -m pip install dist/*.whl + + - name: Test import + run: python -c "from ivmodels import KClass" + + - uses: actions/upload-artifact@v3 + with: + name: wheels + path: dist/* upload-pypi: needs: [python-build, upload-testpypi] diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f7037a2..4d77be0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -73,8 +73,10 @@ jobs: - name: Build source distribution and wheel run: python -m build --sdist --wheel - - name: Test build + - name: Install wheel run: python -m pip install dist/*.whl + + - name: Test import run: python -c "from ivmodels import KClass" - uses: actions/upload-artifact@v3