##// END OF EJS Templates
back to dev
back to dev

File last commit:

r28716:f9ce8c21
r28741:f9982dbf
Show More
test.yml
115 lines | 4.4 KiB | text/x-yaml | YamlLexer
Blazej Michalik
Add GHA tests
r26431 name: Run tests
Matthew Feickert
ci: Add schedule and workflow_dispatch support
r26840 on:
push:
Matthias Bussonnier
Narrow down test running on branches....
r27426 branches:
- main
- '*.x'
Matthew Feickert
ci: Add schedule and workflow_dispatch support
r26840 pull_request:
# Run weekly on Monday at 1:23 UTC
schedule:
- cron: '23 1 * * 1'
workflow_dispatch:
Blazej Michalik
Add GHA tests
r26431
jobs:
test:
Matthew Feickert
ci: Add testing for macOS on ends
r26841 runs-on: ${{ matrix.os }}
Ian Thomas
Disable scheduled CI runs on forks
r28693 # Disable scheduled CI runs on forks
if: github.event_name != 'schedule' || github.repository_owner == 'ipython'
Blazej Michalik
Add GHA tests
r26431 strategy:
Matthias Bussonnier
Update test.yml
r27642 fail-fast: false
Blazej Michalik
Add GHA tests
r26431 matrix:
Nikita Kniazev
Move most of Windows test runners to GitHub Actions...
r27125 os: [ubuntu-latest, windows-latest]
Matthias Bussonnier
Drop Python 3.9...
r28529 python-version: ["3.10", "3.11", "3.12"]
Nikita Kniazev
Move optional dependencies to a separate set
r27104 deps: [test_extra]
Matthew Feickert
ci: Add testing for macOS on ends
r26841 # Test all on ubuntu, test ends on macos
include:
- os: macos-latest
Matthias Bussonnier
Drop Python 3.9...
r28529 python-version: "3.10"
Nikita Kniazev
Move optional dependencies to a separate set
r27104 deps: test_extra
Matthew Feickert
ci: Add testing for macOS on ends
r26841 - os: macos-latest
Matthias Bussonnier
Test on more recent Python versions.
r27973 python-version: "3.11"
Nikita Kniazev
Move optional dependencies to a separate set
r27104 deps: test_extra
# Tests minimal dependencies set
- os: ubuntu-latest
Matthias Bussonnier
Test on more recent Python versions.
r27973 python-version: "3.11"
Nikita Kniazev
Move optional dependencies to a separate set
r27104 deps: test
Nikita Kniazev
Python 3.11 fixes
r27105 # Tests latest development Python version
- os: ubuntu-latest
Matthias Bussonnier
Drop Python 3.9...
r28529 python-version: "3.13-dev"
Nikita Kniazev
Python 3.11 fixes
r27105 deps: test
Nikita Kniazev
Tweak tests for PyPy and add CI runner...
r27235 # Installing optional dependencies stuff takes ages on PyPy
- os: ubuntu-latest
Matthias Bussonnier
Drop Python 3.9...
r28529 python-version: "pypy-3.10"
Nikita Kniazev
Tweak tests for PyPy and add CI runner...
r27235 deps: test
- os: windows-latest
Matthias Bussonnier
Drop Python 3.9...
r28529 python-version: "pypy-3.10"
Nikita Kniazev
Tweak tests for PyPy and add CI runner...
r27235 deps: test
- os: macos-latest
Matthias Bussonnier
Drop Python 3.9...
r28529 python-version: "pypy-3.10"
Nikita Kniazev
Tweak tests for PyPy and add CI runner...
r27235 deps: test
Ian Thomas
Add temporary CI run using matplotlib-inline's entry-point code
r28716 # Temporary CI run to use entry point compatible code in matplotlib-inline.
- os: ubuntu-latest
python-version: "3.12"
deps: test_extra
want-latest-entry-point-code: true
Blazej Michalik
Add GHA tests
r26431
steps:
Christian Clauss
Upgrade GitHub Actions
r27722 - uses: actions/checkout@v3
Blazej Michalik
Add GHA tests
r26431 - name: Set up Python ${{ matrix.python-version }}
Christian Clauss
Upgrade GitHub Actions
r27722 uses: actions/setup-python@v4
Blazej Michalik
Add GHA tests
r26431 with:
python-version: ${{ matrix.python-version }}
Matthias Bussonnier
setup pip cache
r27270 cache: pip
Matthias Bussonnier
try cache
r28177 cache-dependency-path: |
Matthias Koeppe
.github/workflows: Update actions/setup-python cache-dependency-path
r28635 pyproject.toml
Nikita Kniazev
CI: Install texlive to run latex tests
r27085 - name: Install latex
Nikita Kniazev
Move optional dependencies to a separate set
r27104 if: runner.os == 'Linux' && matrix.deps == 'test_extra'
Matthias Bussonnier
disable latex
r27416 run: echo "disable latex for now, issues in mirros" #sudo apt-get -yq -o Acquire::Retries=3 --no-install-suggests --no-install-recommends install texlive dvipng
Matthias Bussonnier
pre
r28173 - name: Install and update Python dependencies (binary only)
if: ${{ ! contains( matrix.python-version, 'dev' ) }}
Blazej Michalik
Add GHA tests
r26431 run: |
Matthias Bussonnier
try to install only binaries
r28172 python -m pip install --only-binary ':all:' --upgrade pip setuptools wheel build
python -m pip install --only-binary ':all:' --no-binary curio --upgrade -e .[${{ matrix.deps }}]
Matthias Bussonnier
pin pytest differently
r28576 python -m pip install --only-binary ':all:' --upgrade check-manifest pytest-cov pytest-json-report 'pytest<8'
Matthias Bussonnier
pre
r28173 - name: Install and update Python dependencies (dev?)
if: ${{ contains( matrix.python-version, 'dev' ) }}
run: |
python -m pip install --pre --upgrade pip setuptools wheel build
Matthias Bussonnier
install wheel from nightly repo
r28307 python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --no-binary curio --upgrade -e .[${{ matrix.deps }}]
python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --upgrade check-manifest pytest-cov pytest-json-report
Matthias Bussonnier
try to build with python -m build
r27269 - name: Try building with Python build
if: runner.os != 'Windows' # setup.py does not support sdist on Windows
run: |
python -m build
shasum -a 256 dist/*
Thomas Kluyver
Add check-manifest command as part of tests job
r26440 - name: Check manifest
Nikita Kniazev
Move most of Windows test runners to GitHub Actions...
r27125 if: runner.os != 'Windows' # setup.py does not support sdist on Windows
Thomas Kluyver
Add check-manifest command as part of tests job
r26440 run: check-manifest
Ian Thomas
Add temporary CI run using matplotlib-inline's entry-point code
r28716
- name: Install entry point compatible code (TEMPORARY)
if: matrix.want-latest-entry-point-code
run: |
python -m pip list
# Not installing matplotlib's entry point code as building matplotlib from source is complex.
# Rely upon matplotlib to test all the latest entry point branches together.
python -m pip install --upgrade git+https://github.com/ipython/matplotlib-inline.git@main
python -m pip list
Blazej Michalik
Add GHA tests
r26431 - name: pytest
Nikita Kniazev
CI: Colorize and widen Pytest summary...
r26992 env:
COLUMNS: 120
Blazej Michalik
Add GHA tests
r26431 run: |
Matthias Bussonnier
Try to fix Pytest error on Python 3.13
r28575 pytest --color=yes -raXxs ${{ startsWith(matrix.python-version, 'pypy') && ' ' || '--cov --cov-report=xml' }} --json-report --json-report-file=./report-${{ matrix.python-version }}-${{runner.os}}.json --maxfail=15
Matthias Bussonnier
try to upload json reports
r28155 - uses: actions/upload-artifact@v3
with:
name: upload pytest timing reports as json
path: |
./report-*.json
Thomas Kluyver
Name codecov step
r26443 - name: Upload coverage to Codecov
krassowski
Fix code cov coverage reporting
r27922 uses: codecov/codecov-action@v3
with:
name: Test
files: /home/runner/work/ipython/ipython/coverage.xml