Bump codecov/codecov-action from 6 to 7 #416
Workflow file for this run
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: pipeline | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master] | |
| jobs: | |
| test-job: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12", "3.13", "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: Install dependencies | |
| run: | | |
| pip install -e . | |
| pip install flake8 pytest pytest-cov codecov build | |
| - name: Lint with flake8 | |
| run: | | |
| # stop the build if there are Python syntax errors or undefined names | |
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| # exit-zero treats all errors as warnings | |
| flake8 . --count --exit-zero --statistics | |
| - name: Test with pytest | |
| run: | | |
| pytest -v --cov=./calibr8 --cov-append --cov-report xml --cov-report term-missing calibr8 | |
| - name: Install and test with PyMC v5 | |
| run: | | |
| pip install "pymc>=6.0.0" | |
| pytest -v --cov=./calibr8 --cov-append --cov-report xml --cov-report term-missing calibr8 | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| file: ./coverage.xml | |
| - name: Test Wheel install and import | |
| run: | | |
| python -m build | |
| cd dist | |
| pip install calibr8*.whl | |
| python -c "import calibr8; print(calibr8.__version__)" |