Skip to content

Commit

Permalink
Bump numpy (#474)
Browse files Browse the repository at this point in the history
* bump numpy

* Update assess-file-changes.yml

* Update testing.yml to install h5py with ROS3 first (#475)

* Update testing.yml

* add zarr to minimal

* adjust dev workflow

* remove past versions

---------

Co-authored-by: Cody Baker <[email protected]>

---------

Co-authored-by: Ryan Ly <[email protected]>
  • Loading branch information
CodyCBakerPhD and rly authored Jun 19, 2024
1 parent 034f6e8 commit 5a8e910
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/assess-file-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
echo "::set-output name=TESTING_CHANGED::false"
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo $file
if [[ $file == "src/nwbinspector/"* || $file == "requirements"* || $file == "setup.py" || $file == "tests/"* ]]
if [[ $file == "src/nwbinspector/"* || $file == "requirements.txt" || $file == "setup.py" || $file == "tests/"* ]]
then
echo "Source changed"
echo "::set-output name=SOURCE_CHANGED::true"
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/deploy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ jobs:
if: ${{ needs.assess-file-changes.outputs.SOURCE_CHANGED == 'true' }}
uses: ./.github/workflows/streaming-tests.yml

run-past-gallery:
needs: assess-file-changes
if: ${{ needs.assess-file-changes.outputs.SOURCE_CHANGED == 'true' }}
uses: ./.github/workflows/version-gallery.yml

run-dev-gallery:
needs: assess-file-changes
if: ${{ needs.assess-file-changes.outputs.SOURCE_CHANGED == 'true' }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/dev-gallery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- uses: actions/checkout@v3
- run: git fetch --prune --unshallow --tags

- name: Install ROS3
run: conda install -c conda-forge h5py
- name: Install pytest
run: |
pip install pytest
Expand All @@ -28,10 +30,6 @@ jobs:
run: |
dandi download "https://gui-staging.dandiarchive.org/#/dandiset/204919"
python -c "from nwbinspector.testing import update_testing_config; update_testing_config(key='LOCAL_PATH', value='./204919/testing_files/')"
- name: Uninstall h5py
run: pip uninstall -y h5py
- name: Install ROS3
run: conda install -c conda-forge h5py
- name: Run pytest with coverage
run: pytest -rsx
10 changes: 2 additions & 8 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,14 @@ jobs:
pip install pytest
pip install pytest-cov
- name: Install ROS3
run: conda install -c conda-forge h5py
- name: Install package
run: pip install ".[dandi]"
- name: Download testing data and set config path
run: |
dandi download "https://gui-staging.dandiarchive.org/#/dandiset/204919"
python -c "from nwbinspector.testing import update_testing_config; update_testing_config(key='LOCAL_PATH', value='./204919/testing_files/')"
- name: Uninstall h5py
run: pip uninstall -y h5py
- name: Install ROS3
run: conda install -c conda-forge h5py
- name: Install HDMF-zarr # temporary
run: pip install hdmf-zarr
- name: Install latest HDMF # temporary
run: pip install -U hdmf
- name: Run pytest with coverage
run: |
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/version-gallery.yml

This file was deleted.

3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pynwb
hdmf-zarr
fsspec
s3fs
requests
Expand All @@ -11,4 +12,4 @@ click
tqdm
isodate
numpy>=1.20.0,<1.21.0;python_version<'3.8'
numpy>=1.22.0;python_version>='3.8' # PyNWB usually has some upper bound here, though
numpy>=1.22.0,<2.0.0;python_version>='3.8'

0 comments on commit 5a8e910

Please sign in to comment.