1818 strategy :
1919 fail-fast : false
2020 matrix :
21- python-version : ["2.7", " 3.11"]
21+ python-version : ["3.11"]
2222 steps :
2323 - name : Checkout code
2424 uses : actions/checkout@v4
@@ -39,24 +39,11 @@ jobs:
3939
4040 -
uses :
pre-commit/[email protected] 4141 name : Run pre-commit checks (no spaces at end of lines, etc)
42- if : ${{ matrix.python-version != '2.7' }}
4342 with :
4443 extra_args : --all-files --verbose --hook-stage commit
4544 env :
4645 SKIP : no-commit-to-branch
4746
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-
6047 - name : Upload coverage report to Coveralls
6148 uses : coverallsapp/github-action@v2
6249 with :
6653 parallel : true
6754
6855 -
uses :
dciborow/[email protected] 69- if : ${{ matrix.python-version != '2.7' }}
7056 with :
7157 reporter : github-pr-review
7258 level : warning
7561 continue-on-error : true
7662
7763 - name : Run pytype checks
78- if : ${{ matrix.python-version != '2.7' }}
7964 run : pip install pandas pytype toml && ./pytype_reporter.py
8065 env :
8166 PR_NUMBER : ${{ github.event.number }}
0 commit comments