Show More
@@ -1,50 +1,52 b'' | |||||
1 | name: Run tests |
|
1 | name: Run tests | |
2 |
|
2 | |||
3 | on: |
|
3 | on: | |
4 | push: |
|
4 | push: | |
5 | pull_request: |
|
5 | pull_request: | |
6 | # Run weekly on Monday at 1:23 UTC |
|
6 | # Run weekly on Monday at 1:23 UTC | |
7 | schedule: |
|
7 | schedule: | |
8 | - cron: '23 1 * * 1' |
|
8 | - cron: '23 1 * * 1' | |
9 | workflow_dispatch: |
|
9 | workflow_dispatch: | |
10 |
|
10 | |||
11 |
|
11 | |||
12 | jobs: |
|
12 | jobs: | |
13 | test: |
|
13 | test: | |
14 | runs-on: ${{ matrix.os }} |
|
14 | runs-on: ${{ matrix.os }} | |
15 | strategy: |
|
15 | strategy: | |
16 | matrix: |
|
16 | matrix: | |
17 | os: [ubuntu-latest] |
|
17 | os: [ubuntu-latest] | |
18 | python-version: ["3.7", "3.8", "3.9"] |
|
18 | python-version: ["3.7", "3.8", "3.9"] | |
19 | # Test all on ubuntu, test ends on macos |
|
19 | # Test all on ubuntu, test ends on macos | |
20 | include: |
|
20 | include: | |
21 | - os: macos-latest |
|
21 | - os: macos-latest | |
22 | python-version: "3.7" |
|
22 | python-version: "3.7" | |
23 | - os: macos-latest |
|
23 | - os: macos-latest | |
24 | python-version: "3.9" |
|
24 | python-version: "3.9" | |
25 |
|
25 | |||
26 | steps: |
|
26 | steps: | |
27 | - uses: actions/checkout@v2 |
|
27 | - uses: actions/checkout@v2 | |
28 | - name: Set up Python ${{ matrix.python-version }} |
|
28 | - name: Set up Python ${{ matrix.python-version }} | |
29 | uses: actions/setup-python@v2 |
|
29 | uses: actions/setup-python@v2 | |
30 | with: |
|
30 | with: | |
31 | python-version: ${{ matrix.python-version }} |
|
31 | python-version: ${{ matrix.python-version }} | |
32 | - name: Install and update Python dependencies |
|
32 | - name: Install and update Python dependencies | |
33 | run: | |
|
33 | run: | | |
34 | python -m pip install --upgrade pip setuptools wheel |
|
34 | python -m pip install --upgrade pip setuptools wheel | |
35 | python -m pip install --upgrade -e file://$PWD#egg=ipython[test] |
|
35 | python -m pip install --upgrade -e file://$PWD#egg=ipython[test] | |
36 | python -m pip install --upgrade --upgrade-strategy eager trio curio |
|
36 | python -m pip install --upgrade --upgrade-strategy eager trio curio | |
37 | python -m pip install --upgrade pytest pytest-cov pytest-trio 'matplotlib!=3.2.0' pandas |
|
37 | python -m pip install --upgrade pytest pytest-cov pytest-trio 'matplotlib!=3.2.0' pandas | |
38 | python -m pip install --upgrade check-manifest pytest-cov anyio |
|
38 | python -m pip install --upgrade check-manifest pytest-cov anyio | |
39 | - name: Check manifest |
|
39 | - name: Check manifest | |
40 | run: check-manifest |
|
40 | run: check-manifest | |
41 | - name: iptest |
|
41 | - name: iptest | |
42 | run: | |
|
42 | run: | | |
43 | cd /tmp && iptest --coverage xml && cd - |
|
43 | cd /tmp && iptest --coverage xml && cd - | |
44 | cp /tmp/ipy_coverage.xml ./ |
|
44 | cp /tmp/ipy_coverage.xml ./ | |
45 | cp /tmp/.coverage ./ |
|
45 | cp /tmp/.coverage ./ | |
46 | - name: pytest |
|
46 | - name: pytest | |
|
47 | env: | |||
|
48 | COLUMNS: 120 | |||
47 | run: | |
|
49 | run: | | |
48 | pytest -v --cov --cov-report=xml |
|
50 | pytest --color=yes -v --cov --cov-report=xml | |
49 | - name: Upload coverage to Codecov |
|
51 | - name: Upload coverage to Codecov | |
50 | uses: codecov/codecov-action@v2 |
|
52 | uses: codecov/codecov-action@v2 |
@@ -1,36 +1,39 b'' | |||||
1 | build: false |
|
1 | build: false | |
2 | matrix: |
|
2 | matrix: | |
3 | fast_finish: true # immediately finish build once one of the jobs fails. |
|
3 | fast_finish: true # immediately finish build once one of the jobs fails. | |
4 |
|
4 | |||
5 | environment: |
|
5 | environment: | |
|
6 | global: | |||
|
7 | COLUMNS: 120 # Appveyor web viwer window width is 130 chars | |||
|
8 | ||||
6 | matrix: |
|
9 | matrix: | |
7 |
|
10 | |||
8 | - PYTHON: "C:\\Python37-x64" |
|
11 | - PYTHON: "C:\\Python37-x64" | |
9 | PYTHON_VERSION: "3.7.x" |
|
12 | PYTHON_VERSION: "3.7.x" | |
10 | PYTHON_ARCH: "64" |
|
13 | PYTHON_ARCH: "64" | |
11 |
|
14 | |||
12 | - PYTHON: "C:\\Python38" |
|
15 | - PYTHON: "C:\\Python38" | |
13 | PYTHON_VERSION: "3.8.x" |
|
16 | PYTHON_VERSION: "3.8.x" | |
14 | PYTHON_ARCH: "32" |
|
17 | PYTHON_ARCH: "32" | |
15 |
|
18 | |||
16 | - PYTHON: "C:\\Python38-x64" |
|
19 | - PYTHON: "C:\\Python38-x64" | |
17 | PYTHON_VERSION: "3.8.x" |
|
20 | PYTHON_VERSION: "3.8.x" | |
18 | PYTHON_ARCH: "64" |
|
21 | PYTHON_ARCH: "64" | |
19 |
|
22 | |||
20 | init: |
|
23 | init: | |
21 | - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%" |
|
24 | - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%" | |
22 |
|
25 | |||
23 | install: |
|
26 | install: | |
24 | - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" |
|
27 | - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" | |
25 | - python -m pip install --upgrade setuptools pip |
|
28 | - python -m pip install --upgrade setuptools pip | |
26 | - pip install nose coverage pytest pytest-cov pytest-trio pywin32 matplotlib pandas |
|
29 | - pip install nose coverage pytest pytest-cov pytest-trio pywin32 matplotlib pandas | |
27 | - pip install .[test] |
|
30 | - pip install .[test] | |
28 | - mkdir results |
|
31 | - mkdir results | |
29 | - cd results |
|
32 | - cd results | |
30 | test_script: |
|
33 | test_script: | |
31 | - iptest --coverage xml |
|
34 | - iptest --coverage xml | |
32 | - cd .. |
|
35 | - cd .. | |
33 | - pytest -ra --cov --cov-report=xml |
|
36 | - pytest --color=yes -ra --cov --cov-report=xml | |
34 | on_finish: |
|
37 | on_finish: | |
35 | - curl -Os https://uploader.codecov.io/latest/windows/codecov.exe |
|
38 | - curl -Os https://uploader.codecov.io/latest/windows/codecov.exe | |
36 | - codecov -e PYTHON_VERSION,PYTHON_ARCH |
|
39 | - codecov -e PYTHON_VERSION,PYTHON_ARCH |
General Comments 0
You need to be logged in to leave comments.
Login now