Skip to content

Commit f547fe2

Browse files
committed
Speed up CI by preventing build during uv sync
1 parent 4cfa108 commit f547fe2

File tree

5 files changed

+24
-36
lines changed

5 files changed

+24
-36
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ jobs:
3333
with:
3434
python-version: "3.12"
3535

36+
- uses: astral-sh/setup-uv@v5
3637
- name: Install dependencies
37-
uses: astral-sh/setup-uv@v5
38+
run: uv sync --dev --no-install-package datafusion
3839

3940
# Update output format to enable automatic inline annotations.
4041
- name: Run Ruff
4142
run: |
42-
uv run ruff check --output-format=github python/
43-
uv run ruff format --check python/
43+
uv run --no-project ruff check --output-format=github python/
44+
uv run --no-project ruff format --check python/
4445
4546
generate-license:
4647
runs-on: ubuntu-latest
@@ -51,7 +52,7 @@ jobs:
5152
- uses: dtolnay/rust-toolchain@nightly
5253

5354
- name: Generate license file
54-
run: uv run python ./dev/create_license.py
55+
run: uv run --no-project python ./dev/create_license.py
5556
- uses: actions/upload-artifact@v4
5657
with:
5758
name: python-wheel-license
@@ -93,7 +94,7 @@ jobs:
9394
uses: astral-sh/setup-uv@v5
9495

9596
- name: Build Python package
96-
run: uv run maturin build --release --strip --features substrait
97+
run: uv run --no-project maturin build --release --strip --features substrait
9798

9899
- name: List Windows wheels
99100
if: matrix.os == 'windows-latest'
@@ -147,7 +148,7 @@ jobs:
147148
uses: astral-sh/setup-uv@v5
148149

149150
- name: Build Python package
150-
run: uv run maturin build --release --strip --features substrait
151+
run: uv run --no-project maturin build --release --strip --features substrait
151152

152153
- name: List Mac wheels
153154
run: find target/wheels/

.github/workflows/docs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ jobs:
6363
- name: Build repo
6464
run: |
6565
uv venv
66-
uv sync --dev -v
66+
uv sync --dev --no-install-package datafusion --group docs
67+
uv run --no-project maturin develop -uv
6768
6869
- name: Build docs
6970
run: |
7071
set -x
7172
cd docs
72-
uv pip install -r requirements.txt
7373
curl -O https://gist.githubusercontent.com/ritchie46/cac6b337ea52281aa23c049250a4ff03/raw/89a957ff3919d90e6ef2d34235e6bf22304f3366/pokemon.csv
7474
curl -O https://d37ci6vzurychx.cloudfront.net/trip-data/yellow_tripdata_2021-01.parquet
75-
uv run make html
75+
uv run --no-project make html
7676
7777
- name: Copy & push the generated HTML
7878
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
# Change to stable once https://issues.apache.org/jira/browse/INFRA-26428 resolves
4747
uses: dtolnay/rust-toolchain@nightly
4848
id: rust-toolchain
49+
with:
50+
components: clippy,rustfmt
4951

5052
- name: Install Protoc
5153
uses: arduino/setup-protoc@v3

docs/requirements.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,15 @@ dev = [
8989
"ruff>=0.9.1",
9090
"toml>=0.10.2",
9191
]
92+
docs = [
93+
"sphinx>=8.1.3",
94+
"pydata-sphinx-theme==0.8.0",
95+
"myst-parser>=4.0.0",
96+
"maturin>=1.8.1",
97+
"jinja2>=3.1.5",
98+
"ipython>=8.31.0",
99+
"pandas>=2.2.3",
100+
"pickleshare>=0.7.5",
101+
"sphinx-autoapi>=3.4.0",
102+
"setuptools>=75.8.0",
103+
]

0 commit comments

Comments
 (0)