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