refactor: update expected values in recursive tests to reflect correc… #221
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] | |
| permissions: | |
| contents: read | |
| id-token: write # Required for Codecov tokenless uploads (public repos) | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Test python API | |
| defaults: | |
| run: | |
| working-directory: . | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.9' | |
| cache: 'pip' | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: llvm-tools-preview | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "src/core -> src/core/target" | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Install requirements | |
| run: | | |
| pip install pytest pytest-cov pytest-asyncio && pip install -e . | |
| - name: Run tests and collect coverage | |
| run: | | |
| cd src/core/ | |
| source <(cargo llvm-cov show-env --export-prefix) | |
| export CARGO_TARGET_DIR=$CARGO_LLVM_COV_TARGET_DIR | |
| export CARGO_INCREMENTAL=1 | |
| cargo llvm-cov clean --workspace | |
| cargo test | |
| cd ../.. | |
| pytest --cov=./ --cov-report=xml | |
| cd src/core/ | |
| cargo llvm-cov --no-run --lcov --output-path ../../coverage.lcov | |
| - name: Upload coverage reports to Codecov with GitHub Action | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage.lcov,coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN || secrets.CODECOV }} | |
| fail_ci_if_error: true |