add badge DeepWiki #148
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 Linux | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Ubuntu / ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| fail-fast: false | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up Fortran | |
| uses: fortran-lang/setup-fortran@v1 | |
| with: | |
| compiler: gcc | |
| version: 14 | |
| - name: Install Ubuntu-build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libopenblas-dev | |
| gfortran --version | |
| gcc --version | |
| - name: Install PyPI-build dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements-build.txt | |
| - name: Build package | |
| run: | | |
| pip install -ve . --no-build-isolation | |
| - name: Run tests and collect coverage | |
| run: | | |
| pytest --cov -v -s --cov-report=xml --junitxml=junit.xml -o junit_family=legacy | |
| coverage report | |
| - name: Run example | |
| run: | | |
| python ./tests/example5.py | |
| - name: Upload coverage to Codecov | |
| if: ${{ matrix.python-version == '3.10' }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: false | |
| - name: Upload test results to Codecov | |
| if: ${{ matrix.python-version == '3.10' && !cancelled() }} | |
| uses: codecov/test-results-action@v1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |