Skip to content

Commit 7b52705

Browse files
authored
Merge pull request #5908 from stephenchengCloud/private/stephenche/remove_python2_CI
Remove python2 related CI
2 parents 0360ee8 + f4c808e commit 7b52705

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
- name: Make install smoketest
4646
run: |
4747
opam exec -- make install DESTDIR=$(mktemp -d)
48-
opam exec -- make install DESTDIR=$(mktemp -d) BUILD_PY2=NO
4948
5049
- name: Check disk space
5150
run: df -h || true

.github/workflows/other.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
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/action@v3.0.1
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:
@@ -66,7 +53,6 @@ jobs:
6653
parallel: true
6754

6855
- uses: dciborow/action-pylint@0.1.0
69-
if: ${{ matrix.python-version != '2.7' }}
7056
with:
7157
reporter: github-pr-review
7258
level: warning
@@ -75,7 +61,6 @@ jobs:
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

Comments
 (0)