diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 393b45a..1e53249 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -20,16 +20,20 @@ concurrency: jobs: latest-releases: - name: Test with latest package releases - runs-on: ubuntu-latest + name: Test with latest package releases (${{ matrix.os }} Python ${{ matrix.python-version }}) + runs-on: ${{ matrix.os }} timeout-minutes: 10 strategy: fail-fast: false + matrix: + os: ["ubuntu-latest"] + python-version: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: - python-version: 3.12 + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d545e00..b5aa89c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,31 +19,6 @@ concurrency: # TODO(jakevdp): add testing on macOS-11 and windows-2019 when grain supports them, # or alternatively run a subset of tests without grain. jobs: - build-latest: - name: Latest packages (${{ matrix.os }} Python ${{ matrix.python-version }}) - runs-on: ${{ matrix.os }} - timeout-minutes: 10 - strategy: - matrix: - os: ["ubuntu-latest"] - python-version: ["3.10", "3.11", "3.12"] - - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4 - with: - submodules: true - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -U jax flax grain ml_dtypes optax orbax-checkpoint orbax-export tensorflow tensorflow_datasets pytest pytest-xdist - - name: Run tests - run: | - pytest -n auto jax_ai_stack - build: name: Pinned packages (${{ matrix.os }} Python ${{ matrix.python-version }}) runs-on: ${{ matrix.os }} @@ -54,11 +29,9 @@ jobs: python-version: ["3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4 - with: - submodules: true + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5 + uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies