##// END OF EJS Templates
Merge pull request #13750 from Carreau/sec-2...
Matthias Bussonnier -
r27791:4f6e132d merge
parent child Browse files
Show More
@@ -1,36 +1,39 b''
1 1 name: Build docs
2 2
3 3 on: [push, pull_request]
4 4
5 permissions:
6 contents: read
7
5 8 jobs:
6 9 build:
7 10 runs-on: ubuntu-latest
8 11
9 12 steps:
10 13 - uses: actions/checkout@v3
11 14 - name: Set up Python
12 15 uses: actions/setup-python@v4
13 16 with:
14 17 python-version: 3.x
15 18 - name: Install Graphviz
16 19 run: |
17 20 sudo apt-get update
18 21 sudo apt-get install graphviz
19 22 - name: Install Python dependencies
20 23 run: |
21 24 python -m pip install --upgrade pip setuptools coverage rstvalidator
22 25 pip install -r docs/requirements.txt
23 26 - name: Build docs
24 27 run: |
25 28 python -m rstvalidator long_description.rst
26 29 python tools/fixup_whats_new_pr.py
27 30 make -C docs/ html SPHINXOPTS="-W" \
28 31 PYTHON="coverage run -a" \
29 32 SPHINXBUILD="coverage run -a -m sphinx.cmd.build"
30 33 - name: Generate coverage xml
31 34 run: |
32 35 coverage combine `find . -name .coverage\*` && coverage xml
33 36 - name: Upload coverage to Codecov
34 37 uses: codecov/codecov-action@v2
35 38 with:
36 39 name: Docs
@@ -1,50 +1,52 b''
1 1 name: Run Downstream tests
2 2
3 3 on:
4 4 push:
5 5 pull_request:
6 6 # Run weekly on Monday at 1:23 UTC
7 7 schedule:
8 8 - cron: '23 1 * * 1'
9 9 workflow_dispatch:
10 10
11 permissions:
12 contents: read
11 13
12 14 jobs:
13 15 test:
14 16 runs-on: ${{ matrix.os }}
15 17 strategy:
16 18 matrix:
17 19 os: [ubuntu-latest]
18 20 python-version: ["3.9"]
19 21 include:
20 22 - os: macos-latest
21 23 python-version: "3.9"
22 24
23 25 steps:
24 26 - uses: actions/checkout@v3
25 27 - name: Set up Python ${{ matrix.python-version }}
26 28 uses: actions/setup-python@v4
27 29 with:
28 30 python-version: ${{ matrix.python-version }}
29 31 - name: Update Python installer
30 32 run: |
31 33 python -m pip install --upgrade pip setuptools wheel
32 34 - name: Install ipykernel
33 35 run: |
34 36 cd ..
35 37 git clone https://github.com/ipython/ipykernel
36 38 cd ipykernel
37 39 pip install -e .[test]
38 40 cd ..
39 41 - name: Install and update Python dependencies
40 42 run: |
41 43 python -m pip install --upgrade -e file://$PWD#egg=ipython[test]
42 44 # we must install IPython after ipykernel to get the right versions.
43 45 python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel
44 46 python -m pip install --upgrade 'pytest<7'
45 47 - name: pytest
46 48 env:
47 49 COLUMNS: 120
48 50 run: |
49 51 cd ../ipykernel
50 52 pytest
@@ -1,34 +1,37 b''
1 1 name: Run MyPy
2 2
3 3 on:
4 4 push:
5 5 branches: [ main, 7.x]
6 6 pull_request:
7 7 branches: [ main, 7.x]
8 8
9 permissions:
10 contents: read
11
9 12 jobs:
10 13 build:
11 14
12 15 runs-on: ubuntu-latest
13 16 strategy:
14 17 matrix:
15 18 python-version: [3.8]
16 19
17 20 steps:
18 21 - uses: actions/checkout@v3
19 22 - name: Set up Python ${{ matrix.python-version }}
20 23 uses: actions/setup-python@v4
21 24 with:
22 25 python-version: ${{ matrix.python-version }}
23 26 - name: Install dependencies
24 27 run: |
25 28 python -m pip install --upgrade pip
26 29 pip install mypy pyflakes flake8
27 30 - name: Lint with mypy
28 31 run: |
29 32 mypy -p IPython.terminal
30 33 mypy -p IPython.core.magics
31 34 - name: Lint with pyflakes
32 35 run: |
33 36 flake8 IPython/core/magics/script.py
34 37 flake8 IPython/core/magics/packaging.py
@@ -1,36 +1,39 b''
1 1 # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2 2 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3 3
4 4 name: Python package
5 5
6 permissions:
7 contents: read
8
6 9 on:
7 10 push:
8 11 branches: [ main, 7.x ]
9 12 pull_request:
10 13 branches: [ main, 7.x ]
11 14
12 15 jobs:
13 16 formatting:
14 17
15 18 runs-on: ubuntu-latest
16 19 timeout-minutes: 5
17 20 steps:
18 21 - uses: actions/checkout@v3
19 22 with:
20 23 fetch-depth: 0
21 24 - name: Set up Python
22 25 uses: actions/setup-python@v4
23 26 with:
24 27 python-version: 3.x
25 28 - name: Install dependencies
26 29 run: |
27 30 python -m pip install --upgrade pip
28 31 pip install darker black==21.12b0
29 32 - name: Lint with darker
30 33 run: |
31 34 darker -r 60625f241f298b5039cb2debc365db38aa7bb522 --check --diff . || (
32 35 echo "Changes need auto-formatting. Run:"
33 36 echo " darker -r 60625f241f298b5039cb2debc365db38aa7bb522"
34 37 echo "then commit and push changes to fix."
35 38 exit 1
36 39 )
General Comments 0
You need to be logged in to leave comments. Login now