##// END OF EJS Templates
Use codecov Github action v2
Thomas Kluyver -
Show More
@@ -1,50 +1,50 b''
1 1 name: Run 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 11
12 12 jobs:
13 13 test:
14 14 runs-on: ${{ matrix.os }}
15 15 strategy:
16 16 matrix:
17 17 os: [ubuntu-latest]
18 18 python-version: ["3.7", "3.8", "3.9"]
19 19 # Test all on ubuntu, test ends on macos
20 20 include:
21 21 - os: macos-latest
22 22 python-version: "3.7"
23 23 - os: macos-latest
24 24 python-version: "3.9"
25 25
26 26 steps:
27 27 - uses: actions/checkout@v2
28 28 - name: Set up Python ${{ matrix.python-version }}
29 29 uses: actions/setup-python@v2
30 30 with:
31 31 python-version: ${{ matrix.python-version }}
32 32 - name: Install and update Python dependencies
33 33 run: |
34 34 python -m pip install --upgrade pip setuptools wheel
35 35 python -m pip install --upgrade -e file://$PWD#egg=ipython[test]
36 36 python -m pip install --upgrade --upgrade-strategy eager trio curio
37 37 python -m pip install --upgrade pytest pytest-trio 'matplotlib!=3.2.0'
38 38 python -m pip install --upgrade check-manifest pytest-cov anyio
39 39 - name: Check manifest
40 40 run: check-manifest
41 41 - name: iptest
42 42 run: |
43 43 cd /tmp && iptest --coverage xml && cd -
44 44 cp /tmp/ipy_coverage.xml ./
45 45 cp /tmp/.coverage ./
46 46 - name: pytest
47 47 run: |
48 48 pytest
49 49 - name: Upload coverage to Codecov
50 uses: codecov/codecov-action@v1
50 uses: codecov/codecov-action@v2
General Comments 0
You need to be logged in to leave comments. Login now