Skip to content

Commit

Permalink
update requirements (#23)
Browse files Browse the repository at this point in the history
* update requirements

* update CI

* update CI
  • Loading branch information
chaoming0625 committed Apr 13, 2024
1 parent 973935c commit 696d962
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/CI.yml
Expand Up @@ -44,9 +44,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
pip install .
python -m pip cache purge
python -m pip install --upgrade pip setuptools --no-cache-dir
python -m pip install -r requirements-dev.txt --no-cache-dir
pip install . --no-cache-dir
- name: Test with pytest
run: |
pytest braincore/
Expand All @@ -73,9 +74,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
pip install .
python -m pip cache purge
python -m pip install --upgrade pip setuptools --no-cache-dir
python -m pip install -r requirements-dev.txt --no-cache-dir
pip install . --no-cache-dir
- name: Test with pytest
run: |
pytest braincore/
Expand All @@ -102,9 +104,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements-dev.txt
pip install .
python -m pip cache purge
python -m pip install --upgrade pip setuptools --no-cache-dir
python -m pip install -r requirements-dev.txt --no-cache-dir
pip install . --no-cache-dir
- name: Test with pytest
run: |
pytest braincore/ -p no:faulthandler
5 changes: 2 additions & 3 deletions requirements-dev.txt
@@ -1,6 +1,5 @@
numpy
jax
jaxlib
-r requirements.txt
brainpy

# test requirements
pytest
Expand Down
4 changes: 1 addition & 3 deletions requirements-doc.txt
@@ -1,7 +1,5 @@
jax
jaxlib
-r requirements.txt
matplotlib
numpy

# document requirements
pandoc
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
@@ -1,2 +1,3 @@
numpy
jax
jaxlib

0 comments on commit 696d962

Please sign in to comment.