Skip to content

Commit

Permalink
chore: fix ci for awkward v1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Jun 18, 2024
1 parent f255328 commit 2bdebdc
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ jobs:
- name: Install package
run: python -m pip install -e .[dev]

- name: Install awkward v1
run: python -m pip install -U "awkward<2"
- name: Install awkward v1 and numpy v1
run: python -m pip install -U "awkward<2" "numpy<2"

- name: Run doctests on Python 3.11 with awkward v1.x
- name: Run doctests on Python 3.11 with awkward v1.x and numpy v1.x
if: matrix.python-version == '3.11'
run: python -m pytest -ra --doctest-plus src/vector/

Expand Down Expand Up @@ -127,24 +127,16 @@ jobs:
- name: Install package
run: python -m pip install -e .[dev]

- name: Install awkward v2
run: python -m pip install -U --pre "awkward>=2.0.0rc1"
- name: Install awkward v2 and numpy v2
run: python -m pip install -U "awkward>=2" "numpy>=2"

- name: Run doctests on Python 3.11 with awkward v2.x
- name: Run doctests on Python 3.11 with awkward v2.x and numpy v2.x
if: matrix.python-version == 3.11
run: python -m pytest -ra --doctest-plus src/vector/

- name: Test package with awkward v2.x
run: python -m pytest -ra --cov=vector --ignore tests/test_notebooks.py .

- name: Install numpy v2
if: matrix.python-version != 3.8
run: python -m pip install "numpy>=2.0.0b1"

- name: Test package with numpy v2.x
if: matrix.python-version != 3.8
run: python -m pytest -ra --cov=vector --ignore tests/test_notebooks.py .

- name: Upload coverage report
uses: codecov/codecov-action@v4.4.1
with:
Expand Down

0 comments on commit 2bdebdc

Please sign in to comment.