downstream.yml
52 lines
| 1.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 }} | ||||
strategy: | ||||
matrix: | ||||
os: [ubuntu-latest] | ||||
Matthias Bussonnier
|
r28529 | python-version: ["3.10"] | ||
Matthias Bussonnier
|
r27031 | include: | ||
- os: macos-latest | ||||
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: | | ||||
cd .. | ||||
git clone https://github.com/ipython/ipykernel | ||||
cd ipykernel | ||||
pip install -e .[test] | ||||
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 Bussonnier
|
r28174 | python -m pip install --upgrade 'pytest<7' 'pytest_asyncio<0.21' | ||
Matthias Bussonnier
|
r27031 | - name: pytest | ||
env: | ||||
COLUMNS: 120 | ||||
run: | | ||||
cd ../ipykernel | ||||
pytest | ||||