Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: CI
2
3 on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9 env:
10 FORCE_COLOR: 1
11
12 jobs:
13 test:
14 name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
15 runs-on: ${{ matrix.os }}
16 strategy:
17 fail-fast: false
18 matrix:
19 os: ["ubuntu-22.04"]
20 python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9"]
21 include:
22 # Python < 3.7 is not available on ubuntu-22.04
23 - os: "ubuntu-20.04"
24 python-version: "3.5"
25 - os: "ubuntu-20.04"
26 python-version: "3.6"
27
28 steps:
29 - uses: actions/checkout@v4
30
31 - name: Set up Python ${{ matrix.python-version }}
32 uses: actions/setup-python@v4
33 with:
34 python-version: ${{ matrix.python-version }}
35 allow-prereleases: true
36
37 - name: Install packages
38 run: |
39 sudo apt-get install --yes zsh
40 export PYTHONIOENCODING=UTF8
41 pip install -r requirements-testing.txt
42
43 - name: Run tests
44 run: |
45 ./tools/display-sighandlers.py
46 ./tools/display-terminalinfo.py
47 pytest --cov pexpect --cov-config .coveragerc
48
49 - name: Check coverage
50 if: github.repository_owner == 'pexpect'
51 env:
52 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53 run: |
54 coveralls --service=github