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