Ci/integration test on call #26
Workflow file for this run
This file contains 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: Unit tests | |
on: | |
pull_request: {} | |
permissions: | |
checks: write | |
pull-requests: write | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
kedro_version: ["0.19.7", "0.19.8"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Sync kedro-databricks | |
run: | | |
uv sync --dev | |
uv add "kedro==${{ matrix.kedro_version }}" | |
- name: Lint kedro-databricks | |
run: uv run ruff check | |
- name: Test kedro-databricks | |
run: uv run pytest tests/unit | |
- name: Coverage comment | |
uses: MishaKav/pytest-coverage-comment@main | |
with: | |
github-token: ${{ github.token }} | |
title: "Unit Test Coverage Report" | |
pytest-xml-coverage-path: "coverage.xml" | |
- name: Check Version | |
uses: ./.github/actions/check_version | |
id: check_version | |
with: | |
github_token: ${{ github.token }} | |
push: false | |
pr_number: ${{ github.event.pull_request.number }} |