##// END OF EJS Templates
Add Python 3.10 CI runners
Nikita Kniazev -
Show More
@@ -1,47 +1,47 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", "3.10"]
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.10"
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: pytest
41 - name: pytest
42 env:
42 env:
43 COLUMNS: 120
43 COLUMNS: 120
44 run: |
44 run: |
45 pytest --color=yes -v --cov --cov-report=xml
45 pytest --color=yes -v --cov --cov-report=xml
46 - name: Upload coverage to Codecov
46 - name: Upload coverage to Codecov
47 uses: codecov/codecov-action@v2
47 uses: codecov/codecov-action@v2
@@ -1,35 +1,40 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:
6 global:
7 APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
7 COLUMNS: 120 # Appveyor web viwer window width is 130 chars
8 COLUMNS: 120 # Appveyor web viwer window width is 130 chars
8
9
9 matrix:
10 matrix:
10
11
12 - PYTHON: "C:\\Python310-x64"
13 PYTHON_VERSION: "3.10.x"
14 PYTHON_ARCH: "64"
15
11 - PYTHON: "C:\\Python37-x64"
16 - PYTHON: "C:\\Python37-x64"
12 PYTHON_VERSION: "3.7.x"
17 PYTHON_VERSION: "3.7.x"
13 PYTHON_ARCH: "64"
18 PYTHON_ARCH: "64"
14
19
15 - PYTHON: "C:\\Python38"
20 - PYTHON: "C:\\Python38"
16 PYTHON_VERSION: "3.8.x"
21 PYTHON_VERSION: "3.8.x"
17 PYTHON_ARCH: "32"
22 PYTHON_ARCH: "32"
18
23
19 - PYTHON: "C:\\Python38-x64"
24 - PYTHON: "C:\\Python38-x64"
20 PYTHON_VERSION: "3.8.x"
25 PYTHON_VERSION: "3.8.x"
21 PYTHON_ARCH: "64"
26 PYTHON_ARCH: "64"
22
27
23 init:
28 init:
24 - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
29 - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
25
30
26 install:
31 install:
27 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
32 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
28 - python -m pip install --upgrade setuptools pip
33 - python -m pip install --upgrade setuptools pip
29 - pip install pytest pytest-cov pytest-trio matplotlib pandas
34 - pip install pytest pytest-cov pytest-trio matplotlib pandas
30 - pip install -e .[test]
35 - pip install -e .[test]
31 test_script:
36 test_script:
32 - pytest --color=yes -ra --cov --cov-report=xml
37 - pytest --color=yes -ra --cov --cov-report=xml
33 on_finish:
38 on_finish:
34 - curl -Os https://uploader.codecov.io/latest/windows/codecov.exe
39 - curl -Os https://uploader.codecov.io/latest/windows/codecov.exe
35 - codecov -e PYTHON_VERSION,PYTHON_ARCH
40 - codecov -e PYTHON_VERSION,PYTHON_ARCH
General Comments 0
You need to be logged in to leave comments. Login now