Skip to content

Commit

Permalink
Merge pull request #656 from lazka/ci-build-dist
Browse files Browse the repository at this point in the history
CI: build and upload sdist/wheel
  • Loading branch information
lazka authored Jun 30, 2024
2 parents 5996987 + 32b4c9e commit f307730
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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: |
Expand All @@ -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
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/*

0 comments on commit f307730

Please sign in to comment.