Add DataFrame support and configuration updates #45
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: Continuous Integration | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '**/*.md' | |
| - '**/*.yaml' | |
| - '**/*.yml' | |
| - '**/*.toml' | |
| env: | |
| UV_VERSION: 0.7.7 | |
| jobs: | |
| lint_and_type_check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.9" | |
| - name: Install UV | |
| run: | | |
| curl -LsSf "https://astral.sh/uv/${{ env.UV_VERSION }}/install.sh" | sh | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Run ruff | |
| run: uv run ruff check snappylapy --output-format=github | |
| - name: Run mypy | |
| run: uv run mypy snappylapy | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.9, 3.13] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install UV | |
| run: | | |
| curl -LsSf "https://astral.sh/uv/${{ env.UV_VERSION }}/install.sh" | sh | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Run tests | |
| run: uv run pytest tests/ --junit-xml=test-results.xml | |
| - name: Surface failing tests | |
| if: always() | |
| uses: pmeier/pytest-results-action@main | |
| with: | |
| # A list of JUnit XML files, directories containing the former, and wildcard | |
| # patterns to process. | |
| # See @actions/glob for supported patterns. | |
| path: test-results.xml | |
| # (Optional) Add a summary of the results at the top of the report | |
| summary: true | |
| # (Optional) Fail the workflow if no JUnit XML was found. | |
| fail-on-empty: true | |
| # (Optional) Title of the test results section in the workflow summary | |
| title: Test results |