Improve documentation and code quality (#314) #16
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: Code coverage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| code_coverage: | |
| name: Code coverage | |
| runs-on: "ubuntu-latest" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Editable install | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install --editable . | |
| python -m pip install --upgrade --group optional --group test --group minimal | |
| # python -m pip install --upgrade mkl-fft | |
| - name: Generate coverage report | |
| run: | | |
| python -X dev -m pytest --cov=phasorpy --cov-report=xml tests | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| env_vars: OS,PYTHON | |
| fail_ci_if_error: false | |
| token: ${{ secrets.PHASORPY_CODECOV_TOKEN }} | |
| verbose: true |