| name: CI — Dense Evolution Tests |
|
|
| on: |
| push: |
| branches: [main] |
| pull_request: |
| branches: [main] |
|
|
| jobs: |
| test: |
| name: Python ${{ matrix.python-version }} |
| runs-on: ubuntu-latest |
|
|
| strategy: |
| fail-fast: false |
| matrix: |
| python-version: ["3.10", "3.11", "3.12"] |
|
|
| steps: |
| - name: Checkout repository |
| uses: actions/checkout@v4 |
|
|
| - name: Set up Python ${{ matrix.python-version }} |
| uses: actions/setup-python@v5 |
| with: |
| python-version: ${{ matrix.python-version }} |
|
|
| - name: Install dependencies |
| run: | |
| python -m pip install --upgrade pip |
| pip install pytest numpy scipy pandas matplotlib psutil ipython |
| pip install setuptools pytest numpy scipy pandas matplotlib psutil ipython jax jaxlib |
| pip install . --no-deps # Installa il pacchetto locale |
| |
| - name: Run test suite |
| run: | |
| pytest test_dense_evolution.py -v --tb=short |
| pytest test_dense_evolution.py -v --tb=short --junitxml=pytest-results.xml |
| |
| - name: Upload test results on failure |
| if: failure() |
| uses: actions/upload-artifact@v4 |
| with: |
| name: pytest-results-${{ matrix.python-version }} |
| path: pytest-results.xml |
|
|