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