refactor: remove benchmark plotting function #117
This file contains hidden or 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: Test Coverage | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [ '3.10', '3.11', '3.12', '3.13', '3.14' ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[plot,all-solvers,test]" | |
| - name: Show project structure and installed packages | |
| run: | | |
| pwd | |
| ls -R | |
| pip list | |
| - name: Display CPU information | |
| run: | | |
| lscpu | |
| cat /proc/cpuinfo | |
| - name: Run tests and generate coverage report | |
| run: | | |
| pytest --cov=benderslib --cov-report=xml | |
| - name: Rename coverage report | |
| run: mv coverage.xml coverage-${{ matrix.python-version }}.xml | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-report-${{ matrix.python-version }} | |
| path: coverage-${{ matrix.python-version }}.xml | |
| retention-days: 1 | |
| upload-coverage: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Download all coverage reports | |
| uses: actions/download-artifact@v8 | |
| with: | |
| pattern: coverage-report-* | |
| path: coverage-reports | |
| merge-multiple: true | |
| - name: Upload merged coverage to Codecov | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: ./coverage-reports/ | |
| flags: unittests | |
| fail_ci_if_error: true | |
| verbose: true |