Skip to content

Commit 1e0110a

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

File tree

3 files changed

+38
-7
lines changed

3 files changed

+38
-7
lines changed

.github/workflows/test.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,41 @@ 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 -U .[latest,dev]
39+
- name: Run tests
40+
run: |
41+
pytest -n auto jax_ml_stack
42+
43+
build:
44+
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
45+
runs-on: ${{ matrix.os }}
46+
strategy:
47+
matrix:
48+
os: ["ubuntu-latest"]
49+
python-version: ["3.9", "3.10", "3.11", "3.12"]
50+
2951
steps:
3052
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4
3153
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.egg-info
22
Pipfile
3+
build/

pyproject.toml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "jax_ml_stack"
3-
version = "0.0.1" # keep in sync with jax_ml_stack/__init__.py
3+
version = "2024.8.1" # keep in sync with jax_ml_stack/__init__.py
44
description = ""
55
readme = "README.md"
66
license = {file = "LICENSE"}
@@ -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]
@@ -33,6 +34,13 @@ dev = [
3334
"pytest-xdist",
3435
]
3536

37+
latest = [
38+
"jax",
39+
"flax",
40+
"optax",
41+
"orbax",
42+
]
43+
3644
[tool.pyink]
3745
# Formatting configuration to follow Google style-guide
3846
line-length = 80

0 commit comments

Comments
 (0)