Skip to content

Commit

Permalink
chore: add support for pandas v2 (#481)
Browse files Browse the repository at this point in the history
v2.0 supports python 3.8, while v2.1 and above only
supports python 3.9 and above. We need to support 1.5 as well,
due to not break backwards compatibility.

Refs: ECALC-1139
  • Loading branch information
TeeeJay committed May 31, 2024
1 parent d7cfb15 commit eddcdd8
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 46 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/lib-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@ jobs:

run-tests-with-coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9" ]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Poetry
run: pipx install poetry

- name: Setup Python
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: ${{ matrix.python-version }}
cache: 'poetry'

- name: Check pyproject.toml validity
Expand All @@ -40,6 +44,7 @@ jobs:

- name: Get Test Coverage score
id: total
if: matrix.python-version == '3.8'
run: |
poetry run python -m coverage report --fail-under 50
poetry run python -m coverage html -d build/
Expand All @@ -52,7 +57,7 @@ jobs:
run: poetry build

- name: Push coverage report to coverage-report branch
if: ${{ github.ref == 'refs/heads/main' }}
if: github.ref == 'refs/heads/main' && matrix.python-version == '3.8'
run: |
cd build
CREATED_FROM_REF=$(git rev-parse --short HEAD)
Expand Down
Loading

0 comments on commit eddcdd8

Please sign in to comment.