Repository navigation
Add an ml extra for gradients in SQL, and two ML demos #269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
53958d4
3eee986
a4ef3b2
8ddc585
e459a8c
403a1f5
65706fd
a2eb466
a61842c
574e9c2
229b842
03c1d51
d5c03ab
ff7352b
1c08ea4
dc515a5
508ae96
28f3cb0
38aaf91
883108b
1361a59
ef30a6e
f7c39f5
d543b55
8a7aa90
cb935d0
714ba63
6debe24
f6cae08
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,7 +65,7 @@ jobs: | |
| # Use the --no-install-package to only install the dependencies | ||
| # but do not yet build the rust library | ||
| - name: Install xarray_sql | ||
| run: uv sync --dev --no-install-package xarray-sql | ||
| run: uv sync --locked --dev --no-install-package xarray-sql | ||
| - name: build rust | ||
| run: uv run --no-project maturin develop --uv | ||
| - name: Install in-process ADBC drivers | ||
|
|
@@ -81,4 +81,43 @@ jobs: | |
| - name: Run unit tests | ||
| env: | ||
| VIRTUAL_ENV: ${{ github.workspace }}/.venv | ||
| run: uv run --no-project pytest -v . -m "not integration" | ||
| # The ML demos run in their own job, below. | ||
| run: uv run --no-project pytest -v . -m "not integration" --ignore=tests/test_ml_demos.py | ||
|
|
||
| ml-demos: | ||
| # Each ML demo in benchmarks/ml, at its smallest size, checked against | ||
| # JAX (tests/test_ml_demos.py). | ||
| name: "ml demos" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is pretty outdated. Consider bumping the versions of all actions using dependabot or similar (using a cooldown too). Here's an example: https://github.com/CU-DBMI/template-uv-python-research-software/blob/main/.github/dependabot.yml#L14
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🌀 Claude: Agreed. It applies to every workflow, so it's tracked in #295, with your template as the example. |
||
|
|
||
| - uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Setup sccache | ||
| uses: mozilla-actions/sccache-action@v0.0.9 | ||
|
|
||
| - name: Configure sccache | ||
| run: | | ||
| echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV | ||
| echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | ||
|
|
||
| - name: Cache Cargo | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.cargo | ||
| key: cargo-cache-${{ steps.rust-toolchain.outputs.cachekey }}-${{ hashFiles('Cargo.lock') }} | ||
|
|
||
| - uses: astral-sh/setup-uv@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| enable-cache: true | ||
|
|
||
| - name: Install xarray_sql | ||
| run: uv sync --locked --dev --extra test --no-install-package xarray-sql | ||
| - name: build rust | ||
| run: uv run --no-project maturin develop --uv | ||
| - name: Run the demos | ||
| env: | ||
| VIRTUAL_ENV: ${{ github.workspace }}/.venv | ||
| run: uv run --no-project pytest -v tests/test_ml_demos.py | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider using
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🌀 Claude: Done in f6cae08, with |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might need
--frozentoo.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌀 Claude: Done in f6cae08: the unit-test job's
uv syncis--lockedtoo. Theuv run --no-projectsteps don't sync.