Skip to content

Commit

Permalink
add publish task to check if package builds properly
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Oct 17, 2024
1 parent bf8251e commit fbbc227
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,33 @@ jobs:
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}

publish:
runs-on: ubuntu-latest

# Steps for running tests and analysis.
steps:
- name: Checking out repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive

- name: Install a specific version of uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true

- name: Install Python 3.12
run: uv python install 3.12

- name: Build package
run: uv build

- name: Check package can be imported
run: uv run --with dist/dtspy-*-py3-none-any.whl --no-project -- python -c "import dts"

# when ready to upload to PyPI
# name: upload to PyPI
# run: uv publish

0 comments on commit fbbc227

Please sign in to comment.