In-memory execution mode for MEDS-Transforms pipelines #857
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main, "release/*", "dev"] | |
| jobs: | |
| run_tests_ubuntu: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| fail-fast: false | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup package | |
| uses: ./.github/actions/setup | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run tests | |
| run: | | |
| uv run pytest -v --cov=src --cov-report=xml:coverage-main.xml -m "not parallelized" | |
| - name: Install joblib | |
| run: | | |
| uv sync --extra local_parallelism | |
| - name: Run tests with joblib | |
| env: | |
| HYDRA_FULL_ERROR: "1" | |
| run: | | |
| uv run pytest -v --cov=src --cov-report=xml:coverage-parallel.xml -m "parallelized" | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: coverage-main.xml,coverage-parallel.xml |