change tests for numpy2.0 + fix for numpy regression #377
Workflow file for this run
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
name: Run tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.10'] | |
# currently there is conflict between tf, oneflow and paddle in protobuf versions. | |
# cupy is not tested because it demands gpu | |
# oneflow testing is dropped, see details at https://github.com/Oneflow-Inc/oneflow/issues/10340 | |
# chainer testing is dropped because of conflict with numpy 2.0, see https://github.com/chainer/chainer/issues/8632 | |
frameworks: ['numpy pytorch tensorflow jax', 'numpy paddle'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
- name: Check for ruff compliance | |
run: | | |
pip install ruff && ruff check . && ruff format . --check | |
- name: Run tests | |
run: | | |
python test.py ${{ matrix.frameworks }} |