Skip to content

Commit

Permalink
Fix ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlondschien committed Sep 16, 2024
1 parent 2a40333 commit 541f4fa
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 541f4fa

Please sign in to comment.