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
22 changes: 9 additions & 13 deletions .github/workflows/deploy_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,28 @@ jobs:
with:
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
python-version-file: ".python-version"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --group docs --frozen
- name: Configure Git for mike
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Update lock file and install dependencies
run: |
poetry lock
poetry install --with docs
- name: Deploy docs with mike
run: |
# Fetch gh-pages branch if it exists
git fetch origin gh-pages:gh-pages || true

# Deploy the version
if [ "${{ github.event.inputs.set_latest }}" = "true" ]; then
poetry run mike deploy --push --update-aliases ${{ github.event.inputs.version_alias }} latest
poetry run mike set-default --push latest
uv run mike deploy --push --update-aliases ${{ github.event.inputs.version_alias }} latest
uv run mike set-default --push latest
else
poetry run mike deploy --push ${{ github.event.inputs.version_alias }}
uv run mike deploy --push ${{ github.event.inputs.version_alias }}
fi
- name: Ensure CNAME exists
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pyright-type-checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:

steps:
- uses: actions/checkout@v4

- run: pipx install poetry
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
cache: 'poetry'
python-version-file: ".python-version"
- name: Install uv
uses: astral-sh/setup-uv@v7

- run: poetry install
- run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
- run: uv sync
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH

- uses: jakebailey/pyright-action@v2
with:
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/release_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
with:
ref: ${{ github.event.inputs.branch }}
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
python-version-file: ".python-version"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Configure Git
run: |
git config user.name github-actions
Expand All @@ -40,9 +40,9 @@ jobs:
- name: Update version
id: update_version
run: |
old_version=$(poetry version -s)
poetry version ${{ github.event.inputs.version_part }}
new_version=$(poetry version -s)
old_version=$(uv version --short)
uv version ${{ github.event.inputs.version_part }}
new_version=$(uv version --short)
echo "new_version=$new_version" >>$GITHUB_OUTPUT
echo "old_version=$old_version" >>$GITHUB_OUTPUT

Expand Down Expand Up @@ -87,9 +87,8 @@ jobs:
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry build
poetry publish
uv build
uv publish --token $PYPI_TOKEN
- name: List dist contents
run: ls -l dist/
- name: Create GitHub Release
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10
Loading