Add generic observation processes which combine the convolution with the noise model. #589
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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| install-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| - name: Install the project | |
| run: uv sync | |
| - name: run tests | |
| run: | | |
| uv run pytest \ | |
| --mpl --mpl-default-tolerance=10 \ | |
| --cov=pyrenew --cov-report term --cov-report xml . | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| env_vars: OS,PYTHON | |
| fail_ci_if_error: true | |
| flags: unittests | |
| file: coverage.xml | |
| plugin: pycoverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: true |