-
-
Notifications
You must be signed in to change notification settings - Fork 459
49 lines (47 loc) · 1.47 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on:
pull_request:
push:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: pre-commit/[email protected]
tests:
name: "Test with python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.machine }}
strategy:
matrix:
include:
- python-version: "3.6"
machine: ubuntu-20.04
- python-version: "3.7"
machine: ubuntu-20.04
- python-version: "3.8"
machine: ubuntu-20.04
- python-version: "3.10"
machine: ubuntu-22.04
- python-version: "3.11"
machine: ubuntu-22.04
- python-version: "3.12"
machine: ubuntu-22.04
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: python -m pip install tox tox-gh-actions
- name: "Run tox targets for ${{ matrix.python-version }}"
run: python -m tox
# lcov support not available in python 3.6
- name: "Generate lcov report"
run: python -m pip install coverage && python -m coverage lcov
if: ${{ matrix.python-version != '3.6' }}
- name: Coveralls
uses: coverallsapp/github-action@v2
if: ${{ matrix.python-version != '3.6' }}