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