| 1 |
name: Run Downstream tests |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
paths-ignore: |
| 6 |
- 'docs/**' |
| 7 |
- '**.md' |
| 8 |
- '**.rst' |
| 9 |
pull_request: |
| 10 |
paths-ignore: |
| 11 |
- 'docs/**' |
| 12 |
- '**.md' |
| 13 |
- '**.rst' |
| 14 |
# Run weekly on Monday at 1:23 UTC |
| 15 |
schedule: |
| 16 |
- cron: '23 1 * * 1' |
| 17 |
workflow_dispatch: |
| 18 |
|
| 19 |
permissions: |
| 20 |
contents: read |
| 21 |
|
| 22 |
concurrency: |
| 23 |
group: ${{ github.workflow }}-${{ github.ref }} |
| 24 |
cancel-in-progress: true |
| 25 |
|
| 26 |
jobs: |
| 27 |
test: |
| 28 |
runs-on: ${{ matrix.os }} |
| 29 |
# Disable scheduled CI runs on forks |
| 30 |
if: github.event_name != 'schedule' || github.repository_owner == 'ipython' |
| 31 |
strategy: |
| 32 |
matrix: |
| 33 |
os: [ubuntu-latest] |
| 34 |
python-version: ["3.13"] |
| 35 |
include: |
| 36 |
- os: macos-14 |
| 37 |
python-version: "3.13" |
| 38 |
|
| 39 |
steps: |
| 40 |
- uses: actions/checkout@v6 |
| 41 |
- name: Set up Python ${{ matrix.python-version }} |
| 42 |
uses: actions/setup-python@v6 |
| 43 |
with: |
| 44 |
python-version: ${{ matrix.python-version }} |
| 45 |
- name: Update Python installer |
| 46 |
run: | |
| 47 |
python -m pip install --upgrade pip setuptools wheel |
| 48 |
- name: Install ipykernel |
| 49 |
run: | |
| 50 |
cd .. |
| 51 |
git clone https://github.com/ipython/ipykernel |
| 52 |
cd ipykernel |
| 53 |
pip install -e .[test] |
| 54 |
cd .. |
| 55 |
- name: Install and update Python dependencies |
| 56 |
run: | |
| 57 |
python -m pip install --upgrade -e file://$PWD#egg=ipython[test] |
| 58 |
# we must install IPython after ipykernel to get the right versions. |
| 59 |
python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel |
| 60 |
- name: pytest ipykernel |
| 61 |
env: |
| 62 |
COLUMNS: 120 |
| 63 |
run: | |
| 64 |
cd ../ipykernel |
| 65 |
pytest |
| 66 |
- name: Install sagemath-repl |
| 67 |
run: | |
| 68 |
# Sept 2024, sage has been failing for a while, |
| 69 |
# Skipping. |
| 70 |
# cd .. |
| 71 |
# git clone --depth 1 https://github.com/sagemath/sage |
| 72 |
# cd sage |
| 73 |
# # We cloned it for the tests, but for simplicity we install the |
| 74 |
# # wheels from PyPI. |
| 75 |
# # (Avoid 10.3b6 because of https://github.com/sagemath/sage/pull/37178) |
| 76 |
# pip install --pre sagemath-repl sagemath-environment |
| 77 |
# # Install optionals that make more tests pass |
| 78 |
# pip install pillow |
| 79 |
# pip install --pre sagemath-categories |
| 80 |
# cd .. |
| 81 |
- name: Test sagemath-repl |
| 82 |
run: | |
| 83 |
# cd ../sage/ |
| 84 |
# # From https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-repl/tox.ini |
| 85 |
# 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 |
| 86 |
- name: Install pyflyby |
| 87 |
run: | |
| 88 |
cd .. |
| 89 |
git clone https://github.com/deshaw/pyflyby |
| 90 |
cd pyflyby |
| 91 |
pip install meson-python meson ninja pybind11>=2.10.4 setuptools-scm |
| 92 |
pip install setuptools wheel # needed for epydoc |
| 93 |
pip install --no-build-isolation -ve .[test] |
| 94 |
pip install 'pytest<=8' |
| 95 |
cd .. |
| 96 |
- name: Test pyflyby (IPython integration only) |
| 97 |
run: | |
| 98 |
cd ../pyflyby |
| 99 |
pytest tests/test_interactive.py --deselect tests/test_interactive.py::test_debug_namespace_1_py3[prompt_toolkit] --deselect tests/test_interactive.py::test_run_separate_script_namespace_2 |