-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Drop support for awkward v1 * style: pre-commit fixes * Fix CI * format * rm awkward v1 pickle file * use nox in ci * Informative name * update notebook tests * dask_awkward should not be installed in lite tests * Use correct python versions * Correct matrix name * Resolve pip backtracking issue * update changelog * fix awkward tests * Update noxfile * Update numpy 2 tests * get rid of numpy 2 nox session * fix notebook tests * update docs * fix record reducers tests --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0401fcc
commit 53fb5fc
Showing
13 changed files
with
86 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,11 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
|
||
env: | ||
# The "FORCE_COLOR" variable, when set to 1, | ||
# tells Nox to colorize itself. | ||
FORCE_COLOR: "1" | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
|
@@ -28,44 +33,7 @@ jobs: | |
echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json" | ||
pipx run nox -s pylint | ||
check-light: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
name: Python ${{ matrix.python-version }} - Light | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Requirements check | ||
run: python -m pip list | ||
|
||
- name: Install package | ||
run: python -m pip install -e .[test] | ||
|
||
- name: Test light package | ||
run: python -m pytest -ra --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 light package with numpy v2.x | ||
if: matrix.python-version != 3.8 | ||
run: python -m pytest -ra --ignore tests/test_notebooks.py | ||
|
||
check-awkward-v1: | ||
needs: [check-light] | ||
check-lite: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -76,7 +44,7 @@ jobs: | |
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
name: Python ${{ matrix.python-version }} - Awkward v1 | ||
name: Python ${{ matrix.python-version }} - Lite | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -87,21 +55,11 @@ jobs: | |
- name: Requirements check | ||
run: python -m pip list | ||
|
||
- name: Install package | ||
run: python -m pip install -e .[dev] | ||
|
||
- 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 and numpy v1.x | ||
if: matrix.python-version == '3.11' | ||
run: python -m pytest -ra --doctest-plus src/vector/ | ||
- name: Test lite package | ||
run: pipx run nox -s lite-${{ matrix.python-version.key || matrix.python-version }} --verbose | ||
|
||
- name: Test package with awkward v1.x | ||
run: python -m pytest -ra --cov=vector --ignore tests/test_notebooks.py . | ||
|
||
check-awkward-v2: | ||
needs: [check-light] | ||
check-full: | ||
needs: [check-lite] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -112,7 +70,7 @@ jobs: | |
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
name: Python ${{ matrix.python-version }} - Awkward v2 | ||
name: Python ${{ matrix.python-version }} - Full | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -123,18 +81,12 @@ jobs: | |
- name: Requirements check | ||
run: python -m pip list | ||
|
||
- name: Install package | ||
run: python -m pip install -e .[dev] | ||
|
||
- name: Install awkward v2 | ||
run: python -m pip install -U awkward "numpy<2.1" | ||
|
||
- name: Run doctests on Python 3.11 with awkward v2.x | ||
- name: Run doctests on Python 3.11 | ||
if: matrix.python-version == 3.11 | ||
run: python -m pytest -ra --doctest-plus src/vector/ | ||
run: pipx run nox -s doctests-${{ matrix.python-version.key || matrix.python-version }} --verbose | ||
|
||
- name: Test package with awkward v2.x | ||
run: python -m pytest -ra --cov=vector --ignore tests/test_notebooks.py . | ||
- name: Test package and generate coverage report | ||
run: pipx run nox -s coverage-${{ matrix.python-version.key || matrix.python-version }} --verbose | ||
|
||
- name: Upload coverage report | ||
uses: codecov/[email protected] | ||
|
@@ -161,8 +113,7 @@ jobs: | |
run: python -m pytest -ra -m dis --ignore tests/test_notebooks.py | ||
|
||
pass: | ||
needs: | ||
[pre-commit, check-light, check-awkward-v1, check-awkward-v2, discheck] | ||
needs: [pre-commit, check-lite, check-full, discheck] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "All jobs passed" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.