Update version to 2.1.2 #222
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: Continuous Integration | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| Test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Dependencies | |
| run: | | |
| python -m pip install --upgrade numpy pytest pytest-cov coverage pip | |
| # Temporary until fixes applied in another PR | |
| python -m pip install '.[all]' | |
| - name: Run tests and measure coverage | |
| run: | | |
| pytest --cov sacc --cov-report xml:coverage.xml --cov-branch ./test | |
| - name: Report coverage in GitHub PR | |
| uses: orgoro/coverage@v3.2 | |
| if: matrix.python-version == '3.11' | |
| with: | |
| coverageFile: ./coverage.xml | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload coverage reports to Codecov | |
| if: matrix.python-version == '3.11' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: true | |
| verbose: true | |
| use_oidc: false | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |