-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4478 from jakevdp:nightly-build
PiperOrigin-RevId: 714260223
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: CI - with JAX nightly | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
schedule: | ||
- cron: "0 12 * * *" # Daily at 12:00 UTC | ||
workflow_dispatch: # allows triggering the workflow run manually | ||
pull_request: # Automatically trigger on pull requests affecting this file | ||
branches: | ||
- main | ||
paths: | ||
- '**workflows/jax_nightly.yml' | ||
|
||
jobs: | ||
jax-nightly: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
issues: write # for failed-build-issue | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: setup_python | ||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Setup uv | ||
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0 | ||
with: | ||
version: "0.3.0" | ||
- name: Install dependencies | ||
run: | | ||
uv sync --extra all --extra testing --extra docs | ||
- name: Install JAX | ||
run: | | ||
uv pip install -U --pre jax jaxlib -f https://storage.googleapis.com/jax-releases/jax_nightly_releases.html | ||
- name: Run test suite | ||
if: success() | ||
run: | | ||
uv run tests/run_all_tests.sh --only-pytest | ||
- name: Notify failed build | ||
uses: jayqi/failed-build-issue-action@1a893bbf43ef1c2a8705e2b115cd4f0fe3c5649b # v1.2.0 | ||
if: failure() && github.event.pull_request == null | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |