downstream.yml
71 lines
| 2.3 KiB
| text/x-yaml
|
YamlLexer
Matthias Bussonnier
|
r27031 | name: Run Downstream tests | ||
on: | ||||
push: | ||||
pull_request: | ||||
# Run weekly on Monday at 1:23 UTC | ||||
schedule: | ||||
- cron: '23 1 * * 1' | ||||
workflow_dispatch: | ||||
Matthias Bussonnier
|
r27782 | permissions: | ||
contents: read | ||||
Matthias Bussonnier
|
r27031 | |||
jobs: | ||||
test: | ||||
runs-on: ${{ matrix.os }} | ||||
Ian Thomas
|
r28693 | # Disable scheduled CI runs on forks | ||
if: github.event_name != 'schedule' || github.repository_owner == 'ipython' | ||||
Matthias Bussonnier
|
r27031 | strategy: | ||
matrix: | ||||
os: [ubuntu-latest] | ||||
Matthias Bussonnier
|
r28529 | python-version: ["3.10"] | ||
Matthias Bussonnier
|
r27031 | include: | ||
Ian Thomas
|
r28745 | - os: macos-13 | ||
Matthias Bussonnier
|
r28529 | python-version: "3.10" | ||
Matthias Bussonnier
|
r27031 | |||
steps: | ||||
Christian Clauss
|
r27724 | - uses: actions/checkout@v3 | ||
Matthias Bussonnier
|
r27031 | - name: Set up Python ${{ matrix.python-version }} | ||
Christian Clauss
|
r27724 | uses: actions/setup-python@v4 | ||
Matthias Bussonnier
|
r27031 | with: | ||
python-version: ${{ matrix.python-version }} | ||||
- name: Update Python installer | ||||
run: | | ||||
python -m pip install --upgrade pip setuptools wheel | ||||
- name: Install ipykernel | ||||
run: | | ||||
Ian Thomas
|
r28744 | cd .. | ||
Matthias Bussonnier
|
r27031 | git clone https://github.com/ipython/ipykernel | ||
cd ipykernel | ||||
Ian Thomas
|
r28744 | pip install -e .[test] | ||
Matthias Bussonnier
|
r27031 | cd .. | ||
- name: Install and update Python dependencies | ||||
run: | | ||||
python -m pip install --upgrade -e file://$PWD#egg=ipython[test] | ||||
luz paz
|
r27520 | # we must install IPython after ipykernel to get the right versions. | ||
Matthias Bussonnier
|
r27031 | python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel | ||
Matthias Koeppe
|
r28615 | - name: pytest ipykernel | ||
Matthias Bussonnier
|
r27031 | env: | ||
COLUMNS: 120 | ||||
run: | | ||||
cd ../ipykernel | ||||
pytest | ||||
Matthias Koeppe
|
r28615 | - name: Install sagemath-repl | ||
run: | | ||||
cd .. | ||||
git clone --depth 1 https://github.com/sagemath/sage | ||||
cd sage | ||||
# We cloned it for the tests, but for simplicity we install the | ||||
# wheels from PyPI. | ||||
Matthias Koeppe
|
r28617 | # (Avoid 10.3b6 because of https://github.com/sagemath/sage/pull/37178) | ||
Ian Thomas
|
r28747 | pip install --pre sagemath-repl sagemath-environment | ||
Matthias Koeppe
|
r28619 | # Install optionals that make more tests pass | ||
Ian Thomas
|
r28746 | pip install pillow | ||
Ian Thomas
|
r28747 | pip install --pre sagemath-categories | ||
Matthias Koeppe
|
r28615 | cd .. | ||
Matthias Koeppe
|
r28617 | - name: Test sagemath-repl | ||
Matthias Koeppe
|
r28615 | run: | | ||
Matthias Koeppe
|
r28617 | cd ../sage/ | ||
# From https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-repl/tox.ini | ||||
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 | ||||