removed rate limit for codecov #3
This file contains 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: CI - Run Tests and Coverage | |
on: | |
push: | |
branches: | |
- structure_change | |
pull_request: | |
branches: | |
- structure_change | |
jobs: | |
test: | |
name: Unit Tests with Coverage | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[dev] | |
- name: Run unit tests with pytest | |
run: | | |
pytest tests/ --cov=rdd --cov-report=xml --cov-report=term | |
- name: Upload coverage report to Codecov (without token) | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.xml | |
fail_ci_if_error: false # Prevents CI from failing if Codecov is rate-limited | |
verbose: true |