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