Show More
@@ -1,67 +1,67 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 | strategy: |
|
17 | strategy: | |
18 | matrix: |
|
18 | matrix: | |
19 | os: [ubuntu-latest] |
|
19 | os: [ubuntu-latest] | |
20 | python-version: ["3.10"] |
|
20 | python-version: ["3.10"] | |
21 | include: |
|
21 | include: | |
22 | - os: macos-latest |
|
22 | - os: macos-latest | |
23 | python-version: "3.10" |
|
23 | python-version: "3.10" | |
24 |
|
24 | |||
25 | steps: |
|
25 | steps: | |
26 | - uses: actions/checkout@v3 |
|
26 | - uses: actions/checkout@v3 | |
27 | - name: Set up Python ${{ matrix.python-version }} |
|
27 | - name: Set up Python ${{ matrix.python-version }} | |
28 | uses: actions/setup-python@v4 |
|
28 | uses: actions/setup-python@v4 | |
29 | with: |
|
29 | with: | |
30 | python-version: ${{ matrix.python-version }} |
|
30 | python-version: ${{ matrix.python-version }} | |
31 | - name: Update Python installer |
|
31 | - name: Update Python installer | |
32 | run: | |
|
32 | run: | | |
33 | python -m pip install --upgrade pip setuptools wheel |
|
33 | python -m pip install --upgrade pip setuptools wheel | |
34 | - name: Install ipykernel |
|
34 | - name: Install ipykernel | |
35 | run: | |
|
35 | run: | | |
36 | cd .. |
|
36 | cd .. | |
37 | git clone https://github.com/ipython/ipykernel |
|
37 | git clone https://github.com/ipython/ipykernel | |
38 | cd ipykernel |
|
38 | cd ipykernel | |
39 | pip install -e .[test] |
|
39 | pip install -e .[test] | |
40 | cd .. |
|
40 | cd .. | |
41 | - name: Install and update Python dependencies |
|
41 | - name: Install and update Python dependencies | |
42 | run: | |
|
42 | run: | | |
43 | python -m pip install --upgrade -e file://$PWD#egg=ipython[test] |
|
43 | python -m pip install --upgrade -e file://$PWD#egg=ipython[test] | |
44 | # we must install IPython after ipykernel to get the right versions. |
|
44 | # we must install IPython after ipykernel to get the right versions. | |
45 | python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel |
|
45 | python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel | |
46 | python -m pip install --upgrade 'pytest<7' 'pytest_asyncio<0.21' |
|
46 | python -m pip install --upgrade 'pytest<7' 'pytest_asyncio<0.21' | |
47 | - name: pytest ipykernel |
|
47 | - name: pytest ipykernel | |
48 | env: |
|
48 | env: | |
49 | COLUMNS: 120 |
|
49 | COLUMNS: 120 | |
50 | run: | |
|
50 | run: | | |
51 | cd ../ipykernel |
|
51 | cd ../ipykernel | |
52 | pytest |
|
52 | pytest | |
53 | - name: Install sagemath-repl |
|
53 | - name: Install sagemath-repl | |
54 | run: | |
|
54 | run: | | |
55 | cd .. |
|
55 | cd .. | |
56 | git clone --depth 1 https://github.com/sagemath/sage |
|
56 | git clone --depth 1 https://github.com/sagemath/sage | |
57 | cd sage |
|
57 | cd sage | |
58 | # We cloned it for the tests, but for simplicity we install the |
|
58 | # We cloned it for the tests, but for simplicity we install the | |
59 | # wheels from PyPI. |
|
59 | # wheels from PyPI. | |
60 |
# (Avoid 10.3b |
|
60 | # (Avoid 10.3b6 because of https://github.com/sagemath/sage/pull/37178) | |
61 | pip install --pre "sagemath-repl<10.3b5" |
|
61 | pip install --pre "sagemath-repl<10.3b5" | |
62 | pip install tox |
|
|||
63 | cd .. |
|
62 | cd .. | |
64 |
- name: t |
|
63 | - name: Test sagemath-repl | |
65 | run: | |
|
64 | run: | | |
66 |
cd ../sage/ |
|
65 | cd ../sage/ | |
67 | tox -v -v --skip-pkg-install --sitepackages -e norequirements |
|
66 | # From https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-repl/tox.ini | |
|
67 | 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