Skip to content

Commit

Permalink
Fix GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapobep committed Dec 19, 2024
1 parent a279749 commit 146e262
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:

jobs:
release-build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./python
Expand All @@ -18,20 +18,19 @@ jobs:
with:
version: "0.5.10"
enable-cache: true
cache-dependency-glob: "uv.lock"
cache-dependency-glob: "python/uv.lock"
- uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
python-version-file: "python/pyproject.toml"
- run: |
uv sync --all-extras --dev
./test.sh
uv build
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
path: python/dist/

pypi-publish:
runs-on: ubuntu-latest
Expand All @@ -57,9 +56,9 @@ jobs:
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/
path: python/dist/

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
packages-dir: python/dist/
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ requires-python = ">=3.11"
license = {text = "MIT License"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: MIT License",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = ["urllib3>=2.0.2"]
Expand Down

0 comments on commit 146e262

Please sign in to comment.