Skip to content
Merged
Show file tree
Hide file tree
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
28 changes: 10 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,28 @@ jobs:
python-version: [3.9]

steps:
- name: Set PATH
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH

- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
enable-cache: true

- name: Install dependencies
env:
POETRY_HTTP_BASIC_NEXTML_USERNAME: __token__
POETRY_HTTP_BASIC_NEXTML_PASSWORD: ${{ secrets.PACKAGR_TOKEN }}
run: |
python -m pip install --upgrade pip poetry
poetry install --no-interaction --no-root
run: uv sync --locked

# - name: Test with pytest
# run: |
# poetry run pytest
# uv run pytest

- name: Build wheels
run: |
poetry version $(git tag --points-at HEAD)
poetry build --format=wheel
uv version "$(git tag --points-at HEAD)"
uv build --wheel

- name: Upload
env:
USERNAME: __token__
PASSWORD: ${{ secrets.PYPI_TOKEN }}
UV_PUBLISH_USERNAME: __token__
UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
poetry publish --username=$USERNAME --password=$PASSWORD
uv publish
17 changes: 6 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,19 @@ jobs:
python-version: [3.9]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
enable-cache: true

- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry install --no-interaction --no-root
poetry add --group dev pytest-codeblocks
run: uv sync --locked

# - name: Test with pytest
# run: |
# poetry run pytest docs/examples --codeblocks -v
# uv run pytest docs/examples --codeblocks -v

- name: Build wheels
run: |
poetry build
run: uv build
Loading
Loading