##// END OF EJS Templates
Merge pull request #13659 from ipython/Carreau-patch-4...
Matthias Bussonnier -
r27645:7943389a merge
parent child Browse files
Show More
@@ -1,80 +1,81 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 - master
7 - master
8 - '*.x'
8 - '*.x'
9 pull_request:
9 pull_request:
10 # Run weekly on Monday at 1:23 UTC
10 # Run weekly on Monday at 1:23 UTC
11 schedule:
11 schedule:
12 - cron: '23 1 * * 1'
12 - cron: '23 1 * * 1'
13 workflow_dispatch:
13 workflow_dispatch:
14
14
15
15
16 jobs:
16 jobs:
17 test:
17 test:
18 runs-on: ${{ matrix.os }}
18 runs-on: ${{ matrix.os }}
19 strategy:
19 strategy:
20 fail-fast: false
20 matrix:
21 matrix:
21 os: [ubuntu-latest, windows-latest]
22 os: [ubuntu-latest, windows-latest]
22 python-version: ["3.8", "3.9", "3.10"]
23 python-version: ["3.8", "3.9", "3.10"]
23 deps: [test_extra]
24 deps: [test_extra]
24 # Test all on ubuntu, test ends on macos
25 # Test all on ubuntu, test ends on macos
25 include:
26 include:
26 - os: macos-latest
27 - os: macos-latest
27 python-version: "3.8"
28 python-version: "3.8"
28 deps: test_extra
29 deps: test_extra
29 - os: macos-latest
30 - os: macos-latest
30 python-version: "3.10"
31 python-version: "3.10"
31 deps: test_extra
32 deps: test_extra
32 # Tests minimal dependencies set
33 # Tests minimal dependencies set
33 - os: ubuntu-latest
34 - os: ubuntu-latest
34 python-version: "3.10"
35 python-version: "3.10"
35 deps: test
36 deps: test
36 # Tests latest development Python version
37 # Tests latest development Python version
37 - os: ubuntu-latest
38 - os: ubuntu-latest
38 python-version: "3.11-dev"
39 python-version: "3.11-dev"
39 deps: test
40 deps: test
40 # Installing optional dependencies stuff takes ages on PyPy
41 # Installing optional dependencies stuff takes ages on PyPy
41 - os: ubuntu-latest
42 - os: ubuntu-latest
42 python-version: "pypy-3.8"
43 python-version: "pypy-3.8"
43 deps: test
44 deps: test
44 - os: windows-latest
45 - os: windows-latest
45 python-version: "pypy-3.8"
46 python-version: "pypy-3.8"
46 deps: test
47 deps: test
47 - os: macos-latest
48 - os: macos-latest
48 python-version: "pypy-3.8"
49 python-version: "pypy-3.8"
49 deps: test
50 deps: test
50
51
51 steps:
52 steps:
52 - uses: actions/checkout@v2
53 - uses: actions/checkout@v2
53 - name: Set up Python ${{ matrix.python-version }}
54 - name: Set up Python ${{ matrix.python-version }}
54 uses: actions/setup-python@v2
55 uses: actions/setup-python@v2
55 with:
56 with:
56 python-version: ${{ matrix.python-version }}
57 python-version: ${{ matrix.python-version }}
57 cache: pip
58 cache: pip
58 - name: Install latex
59 - name: Install latex
59 if: runner.os == 'Linux' && matrix.deps == 'test_extra'
60 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
61 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
62 - name: Install and update Python dependencies
62 run: |
63 run: |
63 python -m pip install --upgrade pip setuptools wheel build
64 python -m pip install --upgrade pip setuptools wheel build
64 python -m pip install --upgrade -e .[${{ matrix.deps }}]
65 python -m pip install --upgrade -e .[${{ matrix.deps }}]
65 python -m pip install --upgrade check-manifest pytest-cov
66 python -m pip install --upgrade check-manifest pytest-cov
66 - name: Try building with Python build
67 - name: Try building with Python build
67 if: runner.os != 'Windows' # setup.py does not support sdist on Windows
68 if: runner.os != 'Windows' # setup.py does not support sdist on Windows
68 run: |
69 run: |
69 python -m build
70 python -m build
70 shasum -a 256 dist/*
71 shasum -a 256 dist/*
71 - name: Check manifest
72 - name: Check manifest
72 if: runner.os != 'Windows' # setup.py does not support sdist on Windows
73 if: runner.os != 'Windows' # setup.py does not support sdist on Windows
73 run: check-manifest
74 run: check-manifest
74 - name: pytest
75 - name: pytest
75 env:
76 env:
76 COLUMNS: 120
77 COLUMNS: 120
77 run: |
78 run: |
78 pytest --color=yes -raXxs ${{ startsWith(matrix.python-version, 'pypy') && ' ' || '--cov --cov-report=xml' }}
79 pytest --color=yes -raXxs ${{ startsWith(matrix.python-version, 'pypy') && ' ' || '--cov --cov-report=xml' }}
79 - name: Upload coverage to Codecov
80 - name: Upload coverage to Codecov
80 uses: codecov/codecov-action@v2
81 uses: codecov/codecov-action@v2
General Comments 0
You need to be logged in to leave comments. Login now