##// END OF EJS Templates
try to install only binaries (#13980)
Matthias Bussonnier -
r28175:4435ef32 merge
parent child Browse files
Show More
@@ -1,52 +1,52 b''
1 name: Run Downstream tests
1 name: Run Downstream tests
2
2
3 on:
3 on:
4 push:
4 push:
5 pull_request:
5 pull_request:
6 # Run weekly on Monday at 1:23 UTC
6 # Run weekly on Monday at 1:23 UTC
7 schedule:
7 schedule:
8 - cron: '23 1 * * 1'
8 - cron: '23 1 * * 1'
9 workflow_dispatch:
9 workflow_dispatch:
10
10
11 permissions:
11 permissions:
12 contents: read
12 contents: read
13
13
14 jobs:
14 jobs:
15 test:
15 test:
16 runs-on: ${{ matrix.os }}
16 runs-on: ${{ matrix.os }}
17 strategy:
17 strategy:
18 matrix:
18 matrix:
19 os: [ubuntu-latest]
19 os: [ubuntu-latest]
20 python-version: ["3.9"]
20 python-version: ["3.9"]
21 include:
21 include:
22 - os: macos-latest
22 - os: macos-latest
23 python-version: "3.9"
23 python-version: "3.9"
24
24
25 steps:
25 steps:
26 - uses: actions/checkout@v3
26 - uses: actions/checkout@v3
27 - name: Set up Python ${{ matrix.python-version }}
27 - name: Set up Python ${{ matrix.python-version }}
28 uses: actions/setup-python@v4
28 uses: actions/setup-python@v4
29 with:
29 with:
30 python-version: ${{ matrix.python-version }}
30 python-version: ${{ matrix.python-version }}
31 - name: Update Python installer
31 - name: Update Python installer
32 run: |
32 run: |
33 python -m pip install --upgrade pip setuptools wheel
33 python -m pip install --upgrade pip setuptools wheel
34 - name: Install ipykernel
34 - name: Install ipykernel
35 run: |
35 run: |
36 cd ..
36 cd ..
37 git clone https://github.com/ipython/ipykernel
37 git clone https://github.com/ipython/ipykernel
38 cd ipykernel
38 cd ipykernel
39 pip install -e .[test]
39 pip install -e .[test]
40 cd ..
40 cd ..
41 - name: Install and update Python dependencies
41 - name: Install and update Python dependencies
42 run: |
42 run: |
43 python -m pip install --upgrade -e file://$PWD#egg=ipython[test]
43 python -m pip install --upgrade -e file://$PWD#egg=ipython[test]
44 # we must install IPython after ipykernel to get the right versions.
44 # we must install IPython after ipykernel to get the right versions.
45 python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel
45 python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel
46 python -m pip install --upgrade 'pytest<7'
46 python -m pip install --upgrade 'pytest<7' 'pytest_asyncio<0.21'
47 - name: pytest
47 - name: pytest
48 env:
48 env:
49 COLUMNS: 120
49 COLUMNS: 120
50 run: |
50 run: |
51 cd ../ipykernel
51 cd ../ipykernel
52 pytest
52 pytest
@@ -1,39 +1,39 b''
1 # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
1 # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
2 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
3
4 name: Python package
4 name: Python package
5
5
6 permissions:
6 permissions:
7 contents: read
7 contents: read
8
8
9 on:
9 on:
10 push:
10 push:
11 branches: [ main, 7.x ]
11 branches: [ main, 7.x ]
12 pull_request:
12 pull_request:
13 branches: [ main, 7.x ]
13 branches: [ main, 7.x ]
14
14
15 jobs:
15 jobs:
16 formatting:
16 formatting:
17
17
18 runs-on: ubuntu-latest
18 runs-on: ubuntu-latest
19 timeout-minutes: 5
19 timeout-minutes: 5
20 steps:
20 steps:
21 - uses: actions/checkout@v3
21 - uses: actions/checkout@v3
22 with:
22 with:
23 fetch-depth: 0
23 fetch-depth: 0
24 - name: Set up Python
24 - name: Set up Python
25 uses: actions/setup-python@v4
25 uses: actions/setup-python@v4
26 with:
26 with:
27 python-version: 3.x
27 python-version: 3.x
28 - name: Install dependencies
28 - name: Install dependencies
29 run: |
29 run: |
30 python -m pip install --upgrade pip
30 python -m pip install --upgrade pip
31 pip install darker==1.5.1 black==22.10.0
31 pip install --only-binary ':all:' darker==1.5.1 black==22.10.0
32 - name: Lint with darker
32 - name: Lint with darker
33 run: |
33 run: |
34 darker -r 60625f241f298b5039cb2debc365db38aa7bb522 --check --diff . || (
34 darker -r 60625f241f298b5039cb2debc365db38aa7bb522 --check --diff . || (
35 echo "Changes need auto-formatting. Run:"
35 echo "Changes need auto-formatting. Run:"
36 echo " darker -r 60625f241f298b5039cb2debc365db38aa7bb522"
36 echo " darker -r 60625f241f298b5039cb2debc365db38aa7bb522"
37 echo "then commit and push changes to fix."
37 echo "then commit and push changes to fix."
38 exit 1
38 exit 1
39 )
39 )
@@ -1,89 +1,96 b''
1 name: Run tests
1 name: Run tests
2
2
3 on:
3 on:
4 push:
4 push:
5 branches:
5 branches:
6 - main
6 - main
7 - '*.x'
7 - '*.x'
8 pull_request:
8 pull_request:
9 # Run weekly on Monday at 1:23 UTC
9 # Run weekly on Monday at 1:23 UTC
10 schedule:
10 schedule:
11 - cron: '23 1 * * 1'
11 - cron: '23 1 * * 1'
12 workflow_dispatch:
12 workflow_dispatch:
13
13
14
14
15 jobs:
15 jobs:
16 test:
16 test:
17 runs-on: ${{ matrix.os }}
17 runs-on: ${{ matrix.os }}
18 strategy:
18 strategy:
19 fail-fast: false
19 fail-fast: false
20 matrix:
20 matrix:
21 os: [ubuntu-latest, windows-latest]
21 os: [ubuntu-latest, windows-latest]
22 python-version: ["3.8", "3.9", "3.10", "3.11"]
22 python-version: ["3.8", "3.9", "3.10", "3.11"]
23 deps: [test_extra]
23 deps: [test_extra]
24 # Test all on ubuntu, test ends on macos
24 # Test all on ubuntu, test ends on macos
25 include:
25 include:
26 - os: macos-latest
26 - os: macos-latest
27 python-version: "3.8"
27 python-version: "3.8"
28 deps: test_extra
28 deps: test_extra
29 - os: macos-latest
29 - os: macos-latest
30 python-version: "3.11"
30 python-version: "3.11"
31 deps: test_extra
31 deps: test_extra
32 # Tests minimal dependencies set
32 # Tests minimal dependencies set
33 - os: ubuntu-latest
33 - os: ubuntu-latest
34 python-version: "3.11"
34 python-version: "3.11"
35 deps: test
35 deps: test
36 # Tests latest development Python version
36 # Tests latest development Python version
37 - os: ubuntu-latest
37 - os: ubuntu-latest
38 python-version: "3.12-dev"
38 python-version: "3.12-dev"
39 deps: test
39 deps: test
40 # Installing optional dependencies stuff takes ages on PyPy
40 # Installing optional dependencies stuff takes ages on PyPy
41 - os: ubuntu-latest
41 - os: ubuntu-latest
42 python-version: "pypy-3.8"
42 python-version: "pypy-3.8"
43 deps: test
43 deps: test
44 - os: windows-latest
44 - os: windows-latest
45 python-version: "pypy-3.8"
45 python-version: "pypy-3.8"
46 deps: test
46 deps: test
47 - os: macos-latest
47 - os: macos-latest
48 python-version: "pypy-3.8"
48 python-version: "pypy-3.8"
49 deps: test
49 deps: test
50
50
51 steps:
51 steps:
52 - uses: actions/checkout@v3
52 - uses: actions/checkout@v3
53 - name: Set up Python ${{ matrix.python-version }}
53 - name: Set up Python ${{ matrix.python-version }}
54 uses: actions/setup-python@v4
54 uses: actions/setup-python@v4
55 with:
55 with:
56 python-version: ${{ matrix.python-version }}
56 python-version: ${{ matrix.python-version }}
57 cache: pip
57 cache: pip
58 - name: Install latex
58 - name: Install latex
59 if: runner.os == 'Linux' && matrix.deps == 'test_extra'
59 if: runner.os == 'Linux' && matrix.deps == 'test_extra'
60 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
60 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
61 - name: Install and update Python dependencies
61 - name: Install and update Python dependencies (binary only)
62 if: ${{ ! contains( matrix.python-version, 'dev' ) }}
62 run: |
63 run: |
63 python -m pip install --upgrade pip setuptools wheel build
64 python -m pip install --only-binary ':all:' --upgrade pip setuptools wheel build
64 python -m pip install --upgrade -e .[${{ matrix.deps }}]
65 python -m pip install --only-binary ':all:' --no-binary curio --upgrade -e .[${{ matrix.deps }}]
65 python -m pip install --upgrade check-manifest pytest-cov pytest-json-report
66 python -m pip install --only-binary ':all:' --upgrade check-manifest pytest-cov pytest-json-report
67 - name: Install and update Python dependencies (dev?)
68 if: ${{ contains( matrix.python-version, 'dev' ) }}
69 run: |
70 python -m pip install --pre --upgrade pip setuptools wheel build
71 python -m pip install --pre --no-binary curio --upgrade -e .[${{ matrix.deps }}]
72 python -m pip install --pre --upgrade check-manifest pytest-cov pytest-json-report
66 - name: Try building with Python build
73 - name: Try building with Python build
67 if: runner.os != 'Windows' # setup.py does not support sdist on Windows
74 if: runner.os != 'Windows' # setup.py does not support sdist on Windows
68 run: |
75 run: |
69 python -m build
76 python -m build
70 shasum -a 256 dist/*
77 shasum -a 256 dist/*
71 - name: Check manifest
78 - name: Check manifest
72 if: runner.os != 'Windows' # setup.py does not support sdist on Windows
79 if: runner.os != 'Windows' # setup.py does not support sdist on Windows
73 run: check-manifest
80 run: check-manifest
74 - name: pytest
81 - name: pytest
75 env:
82 env:
76 COLUMNS: 120
83 COLUMNS: 120
77 run: |
84 run: |
78 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
85 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
79 - uses: actions/upload-artifact@v3
86 - uses: actions/upload-artifact@v3
80 with:
87 with:
81 name: upload pytest timing reports as json
88 name: upload pytest timing reports as json
82 path: |
89 path: |
83 ./report-*.json
90 ./report-*.json
84
91
85 - name: Upload coverage to Codecov
92 - name: Upload coverage to Codecov
86 uses: codecov/codecov-action@v3
93 uses: codecov/codecov-action@v3
87 with:
94 with:
88 name: Test
95 name: Test
89 files: /home/runner/work/ipython/ipython/coverage.xml
96 files: /home/runner/work/ipython/ipython/coverage.xml
General Comments 0
You need to be logged in to leave comments. Login now