|
| 1 | +name: continuous-integration |
| 2 | + |
| 3 | +# We ignore Python 3.7 on windows-latest because 3 tests are failing: |
| 4 | +# - FAIL: test_quadrect_2d_H (quantecon.tests.test_quad.TestQuadrect) |
| 5 | +# AssertionError: |
| 6 | +# Not equal to tolerance rtol=1e-07, atol=0 |
| 7 | +# - FAIL: test_quadrect_2d_H2 (quantecon.tests.test_quad.TestQuadrect) |
| 8 | +# AssertionError: |
| 9 | +# Not equal to tolerance rtol=1e-07, atol=0 |
| 10 | +# - The last error can't be found from the log |
| 11 | +# |
| 12 | +# Run this occasionally to test performance: |
| 13 | +# nosetests -a "slow" |
| 14 | + |
| 15 | +on: |
| 16 | + push: |
| 17 | + branches: |
| 18 | + - master |
| 19 | + pull_request: |
| 20 | + |
| 21 | +jobs: |
| 22 | + tests: |
| 23 | + runs-on: ${{ matrix.os }} |
| 24 | + strategy: |
| 25 | + matrix: |
| 26 | + os: [windows-latest, ubuntu-latest, macos-latest] |
| 27 | + python-version: [3.7, 3.8] |
| 28 | + exclude: |
| 29 | + - os: windows-latest |
| 30 | + python-version: 3.7 |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v2 |
| 33 | + - name: Set up Python ${{ matrix.python-version }} |
| 34 | + uses: actions/setup-python@v1 |
| 35 | + with: |
| 36 | + python-version: ${{ matrix.python-version }} |
| 37 | + - name: Install dependencies |
| 38 | + run: | |
| 39 | + python -m pip install --upgrade pip |
| 40 | + pip install -U nose coverage numpy scipy pandas numba sympy ipython statsmodels flake8 |
| 41 | + pip install tables |
| 42 | + python setup.py install |
| 43 | + - name: Run Tests |
| 44 | + run: | |
| 45 | + flake8 --select F401, F405,E231 quantecon |
| 46 | + nosetests --with-coverage -a "!slow" --cover-package=quantecon |
| 47 | + - name: Coveralls Parallel |
| 48 | + uses: AndreMiras/coveralls-python-action@develop |
| 49 | + if: runner.os == 'Linux' |
| 50 | + with: |
| 51 | + flag-name: run-${{ matrix.test_number }} |
| 52 | + parallel: true |
| 53 | + coveralls_finish: |
| 54 | + needs: tests |
| 55 | + runs-on: ubuntu-latest |
| 56 | + steps: |
| 57 | + - name: Coveralls Finished |
| 58 | + uses: AndreMiras/coveralls-python-action@develop |
| 59 | + with: |
| 60 | + parallel-finished: true |
0 commit comments