Merge pull request #68 from rxavier/feat/preprocessing-p1-ohe-min-fre… #240
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: | |
| push: | |
| branches: [main, master, develop] | |
| tags: ['*'] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| include: | |
| - os: ubuntu-latest | |
| python-version: '3.13' | |
| coverage: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --dev | |
| - name: Lint | |
| run: uv run ruff check poniard/ tests/ examples/ | |
| - name: Format check | |
| run: uv run ruff format --check poniard/ tests/ examples/ | |
| - name: Test (with coverage gate) | |
| if: ${{ matrix.coverage }} | |
| run: uv run pytest -n auto --cov=poniard --cov-report=term-missing --cov-fail-under=85 | |
| - name: Test | |
| if: ${{ !matrix.coverage }} | |
| run: uv run pytest -n auto | |
| publish: | |
| if: startsWith(github.ref, 'refs/tags') | |
| needs: test | |
| uses: ./.github/workflows/publish.yml | |
| secrets: | |
| PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} |