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