Update Codecov workflow for Python setup and coverage #8
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: Codecov | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.14' | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt pytest-cov | |
| - name: Run tests with coverage | |
| run: pytest --cov=rocketpy --cov-report=xml | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v4 | |