File tree Expand file tree Collapse file tree 4 files changed +62
-10
lines changed
Expand file tree Collapse file tree 4 files changed +62
-10
lines changed Original file line number Diff line number Diff line change @@ -49,32 +49,33 @@ jobs:
4949
5050 test_ipynb :
5151 needs : badges
52- name : Test ipynb on Python ${{ matrix.python-version }}
52+ name : Test ipynb on ${{ matrix.environment.name }}
5353 runs-on : ubuntu-latest
5454 strategy :
5555 matrix :
56- python-version : ["3.10", "3.11"]
56+ environment :
57+ - {name: '2021.11', python-version: "3.9.4"}
58+ - {name: 'nightly', python-version: "3"}
5759 fail-fast : false
5860 timeout-minutes : 30
5961 steps :
6062 - name : Checkout
6163 uses : actions/checkout@v4
6264
63- - name : Set up Python
64- uses : actions/setup-python@v5
65- with :
66- python-version : ${{ matrix.python-version }}
67-
6865 - name : Set up uv
6966 uses : astral-sh/setup-uv@v5
7067
7168 - name : Create virtual environment
72- run : uv venv
69+ run : uv venv test-env-${{ matrix.environment.name }} --python ${{ matrix.environment.python-version }}
7370
7471 - name : Install dependencies
75- run : uv pip install pytest pytest-json-report pytest-xdist Cython jupyter nbconvert numpy matplotlib pandas scipy sympy
72+ run : |
73+ source test-env-${{ matrix.environment.name }}/bin/activate
74+ uv pip install -r tests/requirements.${{ matrix.environment.name }}.txt
7675
7776 - name : Run tests
7877 env :
7978 TEST_IPYNB_IGNORE_FOLDER : tutorial
80- run : uv run pytest --numprocesses=auto -k 'not (links or update_nmisp_py)' tests/
79+ run : |
80+ source test-env-${{ matrix.environment.name }}/bin/activate
81+ uv run pytest --numprocesses=auto -k 'not (links or update_nmisp_py)' tests/
Original file line number Diff line number Diff line change 1+ # python==3.9.4
2+ cython==0.29.24
3+ jupyter==1.0.0
4+ lxml==4.6.3
5+ matplotlib==3.4.3
6+ numpy==1.20.3
7+ pandas==1.3.4
8+ pandas-datareader==0.10.0
9+ pytest==6.2.4
10+ pytest-xdist==2.3.0
11+ requests==2.26.0
12+ scikit-learn==0.24.2
13+ scipy==1.7.1
14+ seaborn==0.11.2
15+ statsmodels==0.12.2
16+ sympy==1.9
17+ xlwt==1.3.0
Original file line number Diff line number Diff line change 1+ # python==3.10
2+ cython==0.29.32
3+ jupyter==1.0.0
4+ lxml==4.9.1
5+ matplotlib==3.5.2
6+ numpy==1.21.5
7+ pandas==1.4.4
8+ pandas-datareader==0.10.0
9+ pytest==7.1.2
10+ pytest-xdist==2.5.0
11+ requests==2.28.1
12+ scikit-learn==1.0.1
13+ scipy==1.9.1
14+ seaborn==0.11.2
15+ statsmodels==0.13.2
16+ sympy==1.10.1
17+ xlwt==1.3.0
Original file line number Diff line number Diff line change 1+ # python
2+ cython
3+ jupyter
4+ lxml
5+ matplotlib
6+ numpy
7+ pandas
8+ pandas-datareader
9+ pytest
10+ pytest-xdist
11+ requests
12+ scikit-learn
13+ scipy
14+ seaborn
15+ statsmodels
16+ sympy
17+ xlwt
You can’t perform that action at this time.
0 commit comments