convert to contiguous before metrics collect + pipeline with generic retry #13
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: Test | |
| on: [pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false # Don't cancel entire run if one python-version fails | |
| matrix: | |
| python-version: ["3.10"] | |
| name: Run tests on Python ${{ matrix.python-version }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install core and dev dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -e .[dev] | |
| - name: Run pre-commit checks | |
| run: | | |
| pre-commit run --all-files --color always | |
| - name: Create test-reports directory | |
| run: mkdir -p test-reports | |
| - name: Run core unit tests with coverage | |
| run: | | |
| coverage run --source=fuse --omit="*/__init__.py,*/tests/*" run_all_unit_tests.py core | |
| coverage xml | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: coverage.xml | |
| - name: Upload test reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: junit-test-results | |
| path: test-reports/ |