Documentation improvements #91
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: tools-gha-runners | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| python-version: ["3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| version: "latest" | |
| - name: Install dependencies | |
| run: | | |
| uv sync --dev | |
| - name: Run pre-commit | |
| run: | | |
| uv run pre-commit run --all-files | |
| - name: Run unit tests | |
| run: | | |
| uv run pytest tests/unit -v --junitxml=test-results/unit-results.xml | |
| - name: Run integration tests - neptune3 | |
| run: | | |
| uv run pytest tests/integration/neptune3 -v --junitxml=test-results/integration-neptune3-results.xml | |
| env: | |
| NEPTUNE3_E2E_API_TOKEN: ${{ secrets.NEPTUNE3_E2E_API_TOKEN }} | |
| NEPTUNE3_E2E_PROJECT: ${{ secrets.NEPTUNE3_E2E_PROJECT }} | |
| - name: Run integration tests - neptune2 | |
| run: | | |
| uv run pytest tests/integration/neptune2 -v --junitxml=test-results/integration-neptune2-results.xml | |
| env: | |
| NEPTUNE2_E2E_API_TOKEN: ${{ secrets.NEPTUNE2_E2E_API_TOKEN }} | |
| NEPTUNE2_E2E_PROJECT: ${{ secrets.NEPTUNE2_E2E_PROJECT }} | |
| - name: Run integration tests - mlflow | |
| run: | | |
| uv run pytest tests/integration/mlflow -v --junitxml=test-results/integration-mlflow-results.xml | |
| - name: Publish Unit Test Results | |
| uses: mikepenz/action-junit-report@v4 | |
| if: always() | |
| with: | |
| report_paths: 'test-results/unit-results.xml' | |
| check_name: 'Unit Tests' | |
| fail_on_failure: true | |
| - name: Publish Integration Test Results - neptune3 | |
| uses: mikepenz/action-junit-report@v4 | |
| if: always() | |
| with: | |
| report_paths: 'test-results/integration-neptune3-results.xml' | |
| check_name: 'Integration Tests - Neptune 3' | |
| fail_on_failure: true | |
| - name: Publish Integration Test Results - neptune2 | |
| uses: mikepenz/action-junit-report@v4 | |
| if: always() | |
| with: | |
| report_paths: 'test-results/integration-neptune2-results.xml' | |
| check_name: 'Integration Tests - Neptune 2' | |
| fail_on_failure: true | |
| - name: Publish Integration Test Results - mlflow | |
| uses: mikepenz/action-junit-report@v4 | |
| if: always() | |
| with: | |
| report_paths: 'test-results/integration-mlflow-results.xml' | |
| check_name: 'Integration Tests - MLflow' | |
| fail_on_failure: true |