18
18
strategy :
19
19
fail-fast : false
20
20
matrix :
21
- python-version : ["2.7", " 3.11"]
21
+ python-version : ["3.11"]
22
22
steps :
23
23
- name : Checkout code
24
24
uses : actions/checkout@v4
@@ -39,24 +39,11 @@ jobs:
39
39
40
40
- uses : pre-commit/action@v3.0.1
41
41
name : Run pre-commit checks (no spaces at end of lines, etc)
42
- if : ${{ matrix.python-version != '2.7' }}
43
42
with :
44
43
extra_args : --all-files --verbose --hook-stage commit
45
44
env :
46
45
SKIP : no-commit-to-branch
47
46
48
- - name : Run Pytest for python 2 and get code coverage
49
- if : ${{ matrix.python-version == '2.7' }}
50
- run : >
51
- pip install enum future mock pytest-coverage pytest-mock &&
52
- pytest -vv -rA --cov=ocaml ocaml
53
- --cov-report term-missing
54
- --cov-report xml:.git/coverage${{matrix.python-version}}.xml
55
- --cov-fail-under 50
56
- env :
57
- PYTHONDEVMODE : yes
58
- PYTHONPATH : " python3:python3/stubs"
59
-
60
47
- name : Upload coverage report to Coveralls
61
48
uses : coverallsapp/github-action@v2
62
49
with :
66
53
parallel : true
67
54
68
55
- uses : dciborow/action-pylint@0.1.0
69
- if : ${{ matrix.python-version != '2.7' }}
70
56
with :
71
57
reporter : github-pr-review
72
58
level : warning
75
61
continue-on-error : true
76
62
77
63
- name : Run pytype checks
78
- if : ${{ matrix.python-version != '2.7' }}
79
64
run : pip install pandas pytype toml && ./pytype_reporter.py
80
65
env :
81
66
PR_NUMBER : ${{ github.event.number }}
0 commit comments