Skip to content

Commit

Permalink
Remove python2 related CI
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Cheng <stephen.cheng@cloud.com>
  • Loading branch information
stephenchengCloud committed Aug 3, 2024
1 parent 2e883b7 commit 0f734aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Make install smoketest
run: |
opam exec -- make install DESTDIR=$(mktemp -d)
opam exec -- make install DESTDIR=$(mktemp -d) BUILD_PY2=NO
opam exec -- make install DESTDIR=$(mktemp -d)
- name: Check disk space
run: df -h || true
Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/other.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["2.7", "3.11"]
python-version: ["3.11"]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -39,24 +39,11 @@ jobs:

- uses: pre-commit/action@v3.0.1
name: Run pre-commit checks (no spaces at end of lines, etc)
if: ${{ matrix.python-version != '2.7' }}
with:
extra_args: --all-files --verbose --hook-stage commit
env:
SKIP: no-commit-to-branch

- name: Run Pytest for python 2 and get code coverage
if: ${{ matrix.python-version == '2.7' }}
run: >
pip install enum future mock pytest-coverage pytest-mock &&
pytest -vv -rA --cov=ocaml ocaml
--cov-report term-missing
--cov-report xml:.git/coverage${{matrix.python-version}}.xml
--cov-fail-under 50
env:
PYTHONDEVMODE: yes
PYTHONPATH: "python3:python3/stubs"

- name: Upload coverage report to Coveralls
uses: coverallsapp/github-action@v2
with:
Expand All @@ -66,7 +53,6 @@ jobs:
parallel: true

- uses: dciborow/action-pylint@0.1.0
if: ${{ matrix.python-version != '2.7' }}
with:
reporter: github-pr-review
level: warning
Expand All @@ -75,7 +61,6 @@ jobs:
continue-on-error: true

- name: Run pytype checks
if: ${{ matrix.python-version != '2.7' }}
run: pip install pandas pytype toml && ./pytype_reporter.py
env:
PR_NUMBER: ${{ github.event.number }}
Expand Down

0 comments on commit 0f734aa

Please sign in to comment.