tests: Remove external services requirement from elt-common e2e tests… #5
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: Tests for elt-common | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| paths: | |
| - ".github/workflows/elt-common_tests.yml" | |
| - "elt-common/**" | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| - ".github/workflows/elt-common_tests.yml" | |
| - "elt-common/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| PYTHON_VERSION: 3.13 | |
| UV_VERSION: latest | |
| jobs: | |
| test: | |
| name: test | |
| runs-on: ubuntu-slim | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| activate-environment: false | |
| cache-dependency-glob: elt-common/pyproject.toml | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install the project | |
| shell: bash -l {0} | |
| run: uv sync --locked --all-extras --dev | |
| working-directory: elt-common | |
| - name: Run tests | |
| shell: bash -l {0} | |
| run: uv run pytest --durations-min=0.5 --exitfirst tests/ --cache-clear | |
| working-directory: elt-common |