Skip to content

Commit cba1889

Browse files
committed
Specify exact package versions
1 parent ed1707a commit cba1889

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

.github/workflows/test.yaml

+26-3
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,42 @@ permissions:
1313
contents: read # to fetch code
1414

1515
jobs:
16-
build:
16+
built-latest:
1717
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
1818
runs-on: ${{ matrix.os }}
1919
strategy:
2020
matrix:
2121
os: ["ubuntu-latest"]
2222
python-version: ["3.9", "3.10", "3.11", "3.12"]
2323
include:
24-
- os: macOS-11
25-
python-version: "3.11"
2624
- os: windows-2019
2725
python-version: "3.11"
2826

27+
steps:
28+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4
29+
with:
30+
submodules: true
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
pip install .[dev]
39+
pip install -U jax flax optax orbax
40+
- name: Run tests
41+
run: |
42+
pytest -n auto jax_ml_stack
43+
44+
build:
45+
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
46+
runs-on: ${{ matrix.os }}
47+
strategy:
48+
matrix:
49+
os: ["ubuntu-latest"]
50+
python-version: ["3.10", "3.11", "3.12"]
51+
2952
steps:
3053
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4
3154
with:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.egg-info
22
Pipfile
3+
build/

pyproject.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ keywords = []
1515

1616
# pip dependencies of the project
1717
dependencies = [
18-
"jax",
19-
"flax",
20-
"optax",
18+
"jax==0.4.31",
19+
"flax==0.8.5",
20+
"optax==0.2.3",
21+
"orbax==0.1.9",
2122
]
2223

2324
[project.urls]

0 commit comments

Comments
 (0)