##// END OF EJS Templates
Merge pull request #13185 from meeseeksmachine/auto-backport-of-pr-13182-on-7.x...
Matthias Bussonnier -
r26849:2970eb2e merge
parent child Browse files
Show More
@@ -1,36 +1,50 b''
1 name: Run tests
1 name: Run tests
2
2
3 on: [push, pull_request]
3 on:
4 push:
5 pull_request:
6 # Run weekly on Monday at 1:23 UTC
7 schedule:
8 - cron: '23 1 * * 1'
9 workflow_dispatch:
10
4
11
5 jobs:
12 jobs:
6 test:
13 test:
7 runs-on: ubuntu-latest
14 runs-on: ${{ matrix.os }}
8 strategy:
15 strategy:
9 matrix:
16 matrix:
10 python-version: [3.7, 3.8, 3.9]
17 os: [ubuntu-latest]
18 python-version: ["3.7", "3.8", "3.9"]
19 # Test all on ubuntu, test ends on macos
20 include:
21 - os: macos-latest
22 python-version: "3.7"
23 - os: macos-latest
24 python-version: "3.9"
11
25
12 steps:
26 steps:
13 - uses: actions/checkout@v2
27 - uses: actions/checkout@v2
14 - name: Set up Python ${{ matrix.python-version }}
28 - name: Set up Python ${{ matrix.python-version }}
15 uses: actions/setup-python@v2
29 uses: actions/setup-python@v2
16 with:
30 with:
17 python-version: ${{ matrix.python-version }}
31 python-version: ${{ matrix.python-version }}
18 - name: Install and update Python dependencies
32 - name: Install and update Python dependencies
19 run: |
33 run: |
20 python -m pip install --upgrade pip setuptools wheel
34 python -m pip install --upgrade pip setuptools wheel
21 python -m pip install --upgrade -e file://$PWD#egg=ipython[test]
35 python -m pip install --upgrade -e file://$PWD#egg=ipython[test]
22 python -m pip install --upgrade --upgrade-strategy eager trio curio
36 python -m pip install --upgrade --upgrade-strategy eager trio curio
23 python -m pip install --upgrade pytest pytest-trio 'matplotlib!=3.2.0'
37 python -m pip install --upgrade pytest pytest-trio 'matplotlib!=3.2.0'
24 python -m pip install --upgrade check-manifest pytest-cov anyio
38 python -m pip install --upgrade check-manifest pytest-cov anyio
25 - name: Check manifest
39 - name: Check manifest
26 run: check-manifest
40 run: check-manifest
27 - name: iptest
41 - name: iptest
28 run: |
42 run: |
29 cd /tmp && iptest --coverage xml && cd -
43 cd /tmp && iptest --coverage xml && cd -
30 cp /tmp/ipy_coverage.xml ./
44 cp /tmp/ipy_coverage.xml ./
31 cp /tmp/.coverage ./
45 cp /tmp/.coverage ./
32 - name: pytest
46 - name: pytest
33 run: |
47 run: |
34 pytest
48 pytest
35 - name: Upload coverage to Codecov
49 - name: Upload coverage to Codecov
36 uses: codecov/codecov-action@v1
50 uses: codecov/codecov-action@v1
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now