Skip to content

Add overloaded __call__ method for Expect class and pandas support #52

Add overloaded __call__ method for Expect class and pandas support

Add overloaded __call__ method for Expect class and pandas support #52

name: Continuous Integration
on:
workflow_dispatch:
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'
env:
UV_VERSION: 0.7.12
jobs:
lint_and_type_check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install UV
run: |
curl -LsSf "https://astral.sh/uv/${{ env.UV_VERSION }}/install.sh" | sh
- name: Install dependencies
run: uv sync --all-extras
- name: Run ruff
run: uv run ruff check snappylapy --output-format=github
- name: Run mypy
if: always()
run: uv run mypy snappylapy
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.9, 3.13]
include-extras: [true]
include:
- python-version: 3.9
include-extras: false
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install UV
run: |
curl -LsSf "https://astral.sh/uv/${{ env.UV_VERSION }}/install.sh" | sh
- name: Pin python version
run: uv python pin --python ${{ matrix.python-version }}
- name: Install dependencies
run: |
if [ "${{ matrix.include-extras }}" = "true" ]; then
uv sync --all-extras
else
uv sync
fi
- 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