Skip to content

Commit

Permalink
Test build in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlondschien committed Sep 16, 2024
1 parent 6f80109 commit 2a40333
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,9 @@ on:
types:
- published

name: Build
name: release

jobs:
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

- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/*

upload-testpypi:
needs: [python-build]
runs-on: ubuntu-latest
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,29 @@ jobs:
python-version: "3.12"
- name: Run pre-commit checks
uses: pre-commit/[email protected]

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: Test build
run: python -m pip install dist/*.whl
run: python -c "from ivmodels import KClass"

- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/*

0 comments on commit 2a40333

Please sign in to comment.