Show More
@@ -1,50 +1,52 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-cov pytest-trio 'matplotlib!=3.2.0' pandas |
|
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 | env: | |
|
48 | COLUMNS: 120 | |
|
47 | 49 | run: | |
|
48 | pytest -v --cov --cov-report=xml | |
|
50 | pytest --color=yes -v --cov --cov-report=xml | |
|
49 | 51 | - name: Upload coverage to Codecov |
|
50 | 52 | uses: codecov/codecov-action@v2 |
@@ -1,36 +1,39 b'' | |||
|
1 | 1 | build: false |
|
2 | 2 | matrix: |
|
3 | 3 | fast_finish: true # immediately finish build once one of the jobs fails. |
|
4 | 4 | |
|
5 | 5 | environment: |
|
6 | global: | |
|
7 | COLUMNS: 120 # Appveyor web viwer window width is 130 chars | |
|
8 | ||
|
6 | 9 | matrix: |
|
7 | 10 | |
|
8 | 11 | - PYTHON: "C:\\Python37-x64" |
|
9 | 12 | PYTHON_VERSION: "3.7.x" |
|
10 | 13 | PYTHON_ARCH: "64" |
|
11 | 14 | |
|
12 | 15 | - PYTHON: "C:\\Python38" |
|
13 | 16 | PYTHON_VERSION: "3.8.x" |
|
14 | 17 | PYTHON_ARCH: "32" |
|
15 | 18 | |
|
16 | 19 | - PYTHON: "C:\\Python38-x64" |
|
17 | 20 | PYTHON_VERSION: "3.8.x" |
|
18 | 21 | PYTHON_ARCH: "64" |
|
19 | 22 | |
|
20 | 23 | init: |
|
21 | 24 | - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%" |
|
22 | 25 | |
|
23 | 26 | install: |
|
24 | 27 | - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" |
|
25 | 28 | - python -m pip install --upgrade setuptools pip |
|
26 | 29 | - pip install nose coverage pytest pytest-cov pytest-trio pywin32 matplotlib pandas |
|
27 | 30 | - pip install .[test] |
|
28 | 31 | - mkdir results |
|
29 | 32 | - cd results |
|
30 | 33 | test_script: |
|
31 | 34 | - iptest --coverage xml |
|
32 | 35 | - cd .. |
|
33 | - pytest -ra --cov --cov-report=xml | |
|
36 | - pytest --color=yes -ra --cov --cov-report=xml | |
|
34 | 37 | on_finish: |
|
35 | 38 | - curl -Os https://uploader.codecov.io/latest/windows/codecov.exe |
|
36 | 39 | - codecov -e PYTHON_VERSION,PYTHON_ARCH |
General Comments 0
You need to be logged in to leave comments.
Login now