8000 Try testing built wheels by bollwyvl · Pull Request #14821 · ipython/ipython · GitHub
[go: up one dir, main page]

Skip to content

Try testing built wheels #14821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
try testing as-installed, then in-tree
  • Loading branch information
bollwyvl committed Mar 5, 2025
commit df339eddeedaee1fc8e5ed1c6aebed2bbaf82bcb
30 changes: 24 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- cron: '23 1 * * 1'
workflow_dispatch:

env:
COLUMNS: 120

jobs:
build:
Expand Down Expand Up @@ -57,6 +59,7 @@ jobs:
os: [ubuntu-latest, windows-latest]
python-version: ["3.11", "3.12", "3.13"]
deps: [test_extra]
cov: ['cov']
# Test all on ubuntu, test ends on macos
include:
- os: macos-latest
Expand All @@ -74,12 +77,15 @@ jobs:
# - os: ubuntu-latest
# python-version: "pypy-3.11"
# deps: test
# cov: no-cov
# - os: windows-latest
# python-version: "pypy-3.11"
# deps: test
# cov: no-cov
# - os: macos-latest
# python-version: "pypy-3.11"
# deps: test
# cov: no-cov
# Temporary CI run to use entry point compatible code in matplotlib-inline.
- os: ubuntu-latest
python-version: "3.12"
Expand Down Expand Up @@ -129,13 +135,25 @@ jobs:
run: |
python -m pip list --format=freeze
python -m pip check
- name: pytest
env:
COLUMNS: 120
- name: Move source to avoid import confusion
run: |
cd tests && pytest --color=yes -raXxs ${{ startsWith(matrix.python-version, 'pypy') && ' ' || '--cov --cov-report=xml' }} --maxfail=15
python -c "from pathlib import Path; Path('IPython').rename("_IPython")"
- name: pytest (no coverage)
run: |
pytest --color=yes -raXxs --maxfail=15
- name: pytest (coverage)
if: matrix.cov == 'cov'
run: |
python -c "from pathlib import Path; Path('_IPython').rename('IPython')"
coverage run -m pytest --source=IPython --color=yes -raXxs --maxfail=15
- name: Report coverage
if: matrix.cov == 'cov'
run: |
coverage xml
coverage report --show-missing --skip-covered
- name: Upload coverage to Codecov
if: matrix.cov == 'cov'
uses: codecov/codecov-action@v5
with:
name: Test
files: tests/coverage.xml
name: Test
files: coverage.xml
Loading
0