Skip to content

Commit

Permalink
Simplify and update github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jsspencer committed Dec 9, 2024
1 parent 9a1deec commit ef0a730
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 34 deletions.
38 changes: 6 additions & 32 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
python-version: ['3.11']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install --upgrade pip
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install -e '.[testing]'
Expand Down Expand Up @@ -63,23 +51,9 @@ jobs:
os: ubuntu-latest
package-overrides: "none"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install --upgrade pip
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install -e '.[testing]'
Expand All @@ -90,6 +64,6 @@ jobs:
run: |
python -m pytest
- name: Run multi-device tests
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.11'
run: |
FERMINET_CHEX_N_CPU_DEVICES=2 python -m pytest ferminet/tests/train_test.py
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
'attrs',
'chex',
'h5py',
'folx @ git+https://github.com/microsoft/folx',
'folx @ git+https://github.com/microsoft/folx@main',
'jax',
'jaxlib',
# TODO(b/230487443) - use released version of kfac.
'kfac_jax @ git+https://github.com/deepmind/kfac-jax',
'kfac_jax @ git+https://github.com/google-deepmind/kfac-jax@main',
'ml-collections',
'optax',
'numpy',
Expand Down

0 comments on commit ef0a730

Please sign in to comment.