Rewrite internal/retrieval/test_attributes.py (#131) #449
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: Run unit tests - neptune-query | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| - 'tests/unit/**' | |
| - 'dev_requirements.txt' | |
| - 'pyproject.toml' | |
| - '.github/workflows/tests-unit.yml' | |
| push: | |
| branches: | |
| - main | |
| - dev/.* | |
| jobs: | |
| test: | |
| timeout-minutes: 75 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [ "3.10", "3.13" ] | |
| os: [ ubuntu, macos, windows ] | |
| name: 'unit test (${{ matrix.os }} - py${{ matrix.python-version }})' | |
| runs-on: ${{ matrix.os }}-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.client_payload.pull_request.head.ref }} | |
| - name: Install package | |
| uses: ./.github/actions/install-package | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| os: ${{ matrix.os }}-latest | |
| - name: Run tests | |
| uses: ./.github/actions/run-tests | |
| with: | |
| test-directory: unit | |
| report-job: 'test (${{ matrix.os }} - py${{ matrix.python-version }})' | |
| report-suffix: 'unit-${{ matrix.python-version }}-${{ matrix.os }}' |