Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
contents: read

jobs:
test:
release:
runs-on: ubuntu-latest
timeout-minutes: 10
Comment thread
coderabbitai[bot] marked this conversation as resolved.
steps:
Expand All @@ -18,26 +18,18 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.13"

# 1. Test
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run unit tests
run: pytest tests/test_readers_opendataloader_pdf.py -v --disable-socket --allow-unix-socket

publish:
needs: test
runs-on: ubuntu-latest
timeout-minutes: 10
environment: release
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
# 2. Build
- name: Install build tools
run: pip install --upgrade pip uv
run: pip install uv
- name: Update version from tag
run: |
VERSION="${GITHUB_REF_NAME#v}"
Expand All @@ -46,5 +38,7 @@ jobs:
echo "Publishing version: $VERSION"
- name: Build
run: uv build

# 3. Publish (only on tag push)
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1
Loading