Skip to content

Commit

Permalink
uv in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
zieka committed Dec 17, 2024
1 parent 64c4589 commit 4dd3e8f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 241 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,25 @@ jobs:
with:
python-version-file: "rewrite/.python-version"

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: build-java
run: ./gradlew ${{ env.GRADLE_SWITCHES }} build

- name: build-python
- name: Install dependencies
run: |
cd rewrite
uv python install
uv sync --all-extras
- name: Run tests
run: |
poe test
- name: Run build
run: |
echo "Building project in rewrite"
cd "rewrite"
uv sync --all-extras --dev
uv build
- name: publish-snapshots
if: github.event_name != 'pull_request'
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ build/
out/
bin/
example-data/
.idea/
.idea/

.DS_Store
9 changes: 1 addition & 8 deletions rewrite/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ description = "OpenRewrite is a mass automated refactoring engine."
version = "0.0.0" # Updated dynamically during release
authors = [{ name = "Moderne Inc.", email = "[email protected]" }]
license = { text = "Moderne, Inc. Commercial License" }
dependencies = [
"pytest>=8.3.4",
"more-itertools>=10.4.0",
"openrewrite-remote",
"pip>=24.3.1",
"pypi-simple>=1.6.1",
]
dependencies = ["pytest>=8.3.4", "more-itertools>=10.4.0", "openrewrite-remote"]
requires-python = ">=3.12, <4"

[tool.setuptools.packages.find]
Expand All @@ -24,7 +18,6 @@ exclude = []
[dependency-groups]
dev = [
"pytest==8.3.4",
"pytest-asyncio==0.24.0",
"mypy==1.13.0",
"poethepoet==0.31.1",
"black==24.10.0",
Expand Down
Loading

0 comments on commit 4dd3e8f

Please sign in to comment.