1818 strategy :
1919 fail-fast : true
2020 matrix :
21- python-version : ['3.9', '3.13']
21+ python-version : ['3.9', '3.12']
22+ numpy-version : ['1.26', '2.1']
2223 defaults :
2324 # by default run in bash mode (required for conda usage)
2425 run :
@@ -50,31 +51,34 @@ jobs:
5051 with :
5152 activate-environment : neo-test-env-${{ matrix.python-version }}
5253 python-version : " ${{ matrix.python-version }}"
53-
54- - name : Get current dependencies hash
55- id : dependencies
56- run : |
57- echo "hash=${{hashFiles('**/pyproject.toml', '**/environment_testing.yml')}}" >> $GITHUB_OUTPUT
58-
59- - uses : actions/cache/restore@v3
54+
55+ # TEST NOT USING CACHE
56+ # - name: Get current dependencies hash
57+ # id: dependencies
58+ # run: |
59+ # echo "hash=${{hashFiles('**/pyproject.toml', '**/environment_testing.yml')}}" >> $GITHUB_OUTPUT
60+
61+ # - uses: actions/cache/restore@v3
6062 # the cache for python package is reset:
6163 # * every month
6264 # * when package dependencies change
63- id : cache-conda-env
64- with :
65- path : /usr/share/miniconda/envs/neo-test-env-${{ matrix.python-version }}
66- key : ${{ runner.os }}-conda-env-${{ steps.dependencies.outputs.hash }}-${{ steps.date.outputs.date }}
65+ # id: cache-conda-env
66+ # with:
67+ # path: /usr/share/miniconda/envs/neo-test-env-${{ matrix.python-version }}
68+ # key: ${{ runner.os }}-conda-env-${{ steps.dependencies.outputs.hash }}-${{ steps.date.outputs.date }}
6769 # restore-keys match any key that starts with the restore-key
68- restore-keys : |
69- ${{ runner.os }}-conda-env-${{ steps.dependencies.outputs.hash }}-
70- ${{ runner.os }}-conda-env-
70+ # restore-keys: |
71+ # ${{ runner.os }}-conda-env-${{ steps.dependencies.outputs.hash }}-
72+ # ${{ runner.os }}-conda-env-
7173
7274 - name : Install testing dependencies
7375 # testing environment is only created from yml if no cache was found
7476 # restore-key hits should result in `cache-hit` == 'false'
75- if : steps.cache-conda-env.outputs.cache-hit != 'true'
77+ # if: steps.cache-conda-env.outputs.cache-hit != 'true'
7678 run : |
77- conda env update --name neo-test-env-${{ matrix.python-version }} --file environment_testing.yml --prune
79+ conda install datalad pip ${{ matrix.numpy-version }}
80+ # this command is for updating cache. We are resting removal.
81+ # conda env update --name neo-test-env-${{ matrix.python-version }} --file environment_testing.yml --prune
7882
7983 - name : Configure git
8084 run : |
@@ -89,16 +93,17 @@ jobs:
8993 - name : Install neo including dependencies
9094 # installation with dependencies is only required if no cache was found
9195 # restore-key hits should result in `cache-hit` == 'false'
92- if : steps.cache-conda-env.outputs.cache-hit != 'true'
96+ # if: steps.cache-conda-env.outputs.cache-hit != 'true'
9397 run : |
9498 pip install --upgrade -e .
9599 pip install .[test]
96100
97- - name : Install neo without dependencies
101+ # TEST NOT USING CACHE
102+ # - name: Install neo without dependencies
98103 # only installing neo version to test as dependencies should be in cached conda env already
99- if : steps.cache-conda-env.outputs.cache-hit == 'true'
100- run : |
101- pip install --no-dependencies -e .
104+ # if: steps.cache-conda-env.outputs.cache-hit == 'true'
105+ # run: |
106+ # pip install --no-dependencies -e .
102107
103108 - name : Install wine
104109 run : |
0 commit comments