diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 9cb708a..0077d42 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -25,24 +25,32 @@ jobs: python-version: ${{ matrix.python-version }} - name: Cache dependencies and test data - id: cache + id: cache_deps uses: actions/cache@v3 with: path: | - ${{ env.pythonLocation }} tests/data data - key: venv-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml', '**/tests/scripts/fetch_test_data.sh') }} + key: venv-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }} + + - name: Cache dependencies test data + id: cache_test_data + uses: actions/cache@v3 + with: + path: | + tests/data + data + key: venv-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/tests/scripts/fetch_test_data.sh') }} - name: Install dependencies - if: ${{ steps.cache.outputs.cache-hit != 'true' }} + if: ${{ steps.cache_deps.outputs.cache-hit != 'true' }} run: | python -m pip install --upgrade pip pip install . pip install pytest omegaconf - name: Get test data from OSF - if: ${{ steps.cache.outputs.cache-hit != 'true' }} + if: ${{ steps.cache_test_data.outputs.cache-hit != 'true' }} run: | sh tests/scripts/fetch_test_data.sh diff --git a/pyproject.toml b/pyproject.toml index 2033307..a1c9055 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,28 +38,28 @@ classifiers = [ "Programming Language :: Python :: Implementation :: PyPy", ] dependencies = [ - "torch", - "numpy", - "natsort", - "pandas", - "dataclasses_json", - "mrcfile", + "torch<=2.3.1", + "numpy<=2.0.0", + "natsort<=8.4.0", + "pandas<=2.2.2", + "dataclasses_json<=0.6.7", + "mrcfile<=1.5.0", "scipy<=1.13.1", - "cvxpy", - "POT", - "aspire", - "jupyter", - "osfclient", - "seaborn" + "cvxpy<=1.5.2", + "POT<=0.9.3", + "aspire<=0.12.2", + "jupyter<=1.0.0", + "osfclient<=0.0.5", + "seaborn<=0.13.2" ] [project.optional-dependencies] dev = [ - "pytest", + "pytest<=8.2.2", "mypy", "pre-commit", "ruff", - "omegaconf" + "omegaconf<=2.3.0" ] [project.urls]