Show More
@@ -1,71 +1,70 b'' | |||||
1 | name: Run Downstream tests |
|
1 | name: Run Downstream tests | |
2 |
|
2 | |||
3 | on: |
|
3 | on: | |
4 | push: |
|
4 | push: | |
5 | pull_request: |
|
5 | pull_request: | |
6 | # Run weekly on Monday at 1:23 UTC |
|
6 | # Run weekly on Monday at 1:23 UTC | |
7 | schedule: |
|
7 | schedule: | |
8 | - cron: '23 1 * * 1' |
|
8 | - cron: '23 1 * * 1' | |
9 | workflow_dispatch: |
|
9 | workflow_dispatch: | |
10 |
|
10 | |||
11 | permissions: |
|
11 | permissions: | |
12 | contents: read |
|
12 | contents: read | |
13 |
|
13 | |||
14 | jobs: |
|
14 | jobs: | |
15 | test: |
|
15 | test: | |
16 | runs-on: ${{ matrix.os }} |
|
16 | runs-on: ${{ matrix.os }} | |
17 | # Disable scheduled CI runs on forks |
|
17 | # Disable scheduled CI runs on forks | |
18 | if: github.event_name != 'schedule' || github.repository_owner == 'ipython' |
|
18 | if: github.event_name != 'schedule' || github.repository_owner == 'ipython' | |
19 | strategy: |
|
19 | strategy: | |
20 | matrix: |
|
20 | matrix: | |
21 | os: [ubuntu-latest] |
|
21 | os: [ubuntu-latest] | |
22 | python-version: ["3.10"] |
|
22 | python-version: ["3.10"] | |
23 | include: |
|
23 | include: | |
24 | - os: macos-latest |
|
24 | - os: macos-latest | |
25 | python-version: "3.10" |
|
25 | python-version: "3.10" | |
26 |
|
26 | |||
27 | steps: |
|
27 | steps: | |
28 | - uses: actions/checkout@v3 |
|
28 | - uses: actions/checkout@v3 | |
29 | - name: Set up Python ${{ matrix.python-version }} |
|
29 | - name: Set up Python ${{ matrix.python-version }} | |
30 | uses: actions/setup-python@v4 |
|
30 | uses: actions/setup-python@v4 | |
31 | with: |
|
31 | with: | |
32 | python-version: ${{ matrix.python-version }} |
|
32 | python-version: ${{ matrix.python-version }} | |
33 | - name: Update Python installer |
|
33 | - name: Update Python installer | |
34 | run: | |
|
34 | run: | | |
35 | python -m pip install --upgrade pip setuptools wheel |
|
35 | python -m pip install --upgrade pip setuptools wheel | |
36 | - name: Install ipykernel |
|
36 | - name: Install ipykernel | |
37 | run: | |
|
37 | run: | | |
38 |
cd .. |
|
38 | cd .. | |
39 | git clone https://github.com/ipython/ipykernel |
|
39 | git clone https://github.com/ipython/ipykernel | |
40 | cd ipykernel |
|
40 | cd ipykernel | |
41 |
pip install -e .[test] |
|
41 | pip install -e .[test] | |
42 | cd .. |
|
42 | cd .. | |
43 | - name: Install and update Python dependencies |
|
43 | - name: Install and update Python dependencies | |
44 | run: | |
|
44 | run: | | |
45 | python -m pip install --upgrade -e file://$PWD#egg=ipython[test] |
|
45 | python -m pip install --upgrade -e file://$PWD#egg=ipython[test] | |
46 | # we must install IPython after ipykernel to get the right versions. |
|
46 | # we must install IPython after ipykernel to get the right versions. | |
47 | python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel |
|
47 | python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel | |
48 | python -m pip install --upgrade 'pytest<7' 'pytest_asyncio<0.21' |
|
|||
49 | - name: pytest ipykernel |
|
48 | - name: pytest ipykernel | |
50 | env: |
|
49 | env: | |
51 | COLUMNS: 120 |
|
50 | COLUMNS: 120 | |
52 | run: | |
|
51 | run: | | |
53 | cd ../ipykernel |
|
52 | cd ../ipykernel | |
54 | pytest |
|
53 | pytest | |
55 | - name: Install sagemath-repl |
|
54 | - name: Install sagemath-repl | |
56 | run: | |
|
55 | run: | | |
57 | cd .. |
|
56 | cd .. | |
58 | git clone --depth 1 https://github.com/sagemath/sage |
|
57 | git clone --depth 1 https://github.com/sagemath/sage | |
59 | cd sage |
|
58 | cd sage | |
60 | # We cloned it for the tests, but for simplicity we install the |
|
59 | # We cloned it for the tests, but for simplicity we install the | |
61 | # wheels from PyPI. |
|
60 | # wheels from PyPI. | |
62 | # (Avoid 10.3b6 because of https://github.com/sagemath/sage/pull/37178) |
|
61 | # (Avoid 10.3b6 because of https://github.com/sagemath/sage/pull/37178) | |
63 | pip install --pre "sagemath-repl<10.3b6" "sagemath-environment<10.3b6" |
|
62 | pip install --pre "sagemath-repl<10.3b6" "sagemath-environment<10.3b6" | |
64 | # Install optionals that make more tests pass |
|
63 | # Install optionals that make more tests pass | |
65 | pip install sagemath-categories pillow |
|
64 | pip install sagemath-categories pillow | |
66 | cd .. |
|
65 | cd .. | |
67 | - name: Test sagemath-repl |
|
66 | - name: Test sagemath-repl | |
68 | run: | |
|
67 | run: | | |
69 | cd ../sage/ |
|
68 | cd ../sage/ | |
70 | # From https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-repl/tox.ini |
|
69 | # From https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-repl/tox.ini | |
71 | sage-runtests -p --environment=sage.all__sagemath_repl --baseline-stats-path=pkgs/sagemath-repl/known-test-failures.json --initial --optional=sage src/sage/repl src/sage/doctest src/sage/misc/sage_input.py src/sage/misc/sage_eval.py |
|
70 | sage-runtests -p --environment=sage.all__sagemath_repl --baseline-stats-path=pkgs/sagemath-repl/known-test-failures.json --initial --optional=sage src/sage/repl src/sage/doctest src/sage/misc/sage_input.py src/sage/misc/sage_eval.py |
General Comments 0
You need to be logged in to leave comments.
Login now