Tests #179
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" | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 4 * * *' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: " | |
| dlt ${{ matrix.dlt-version }} | |
| Python ${{ matrix.python-version }} | |
| " | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ['ubuntu-latest'] | |
| python-version: [ | |
| '3.9', | |
| '3.14', | |
| ] | |
| dlt-version: [ | |
| '<1.18', | |
| '>=1.18', | |
| ] | |
| env: | |
| OS: ${{ matrix.os }} | |
| PYTHON: ${{ matrix.python-version }} | |
| steps: | |
| - name: Acquire sources | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| activate-environment: true | |
| cache-suffix: ${{ matrix.python-version }} | |
| enable-cache: true | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up project | |
| run: | | |
| uv pip install pip | |
| uv pip install 'dlt[postgres]${{ matrix.dlt-version }}' | |
| uv pip install --editable='.[develop,test]' | |
| dlt --version | |
| - name: Set timezone | |
| uses: szenius/set-timezone@v2.0 | |
| with: | |
| timezoneLinux: "Europe/Berlin" | |
| timezoneMacos: "Europe/Berlin" | |
| timezoneWindows: "European Standard Time" | |
| - name: Run linters and software tests | |
| run: poe check | |
| # https://github.com/codecov/codecov-action | |
| - name: Upload coverage results to Codecov | |
| uses: codecov/codecov-action@v6 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| files: ./coverage.xml | |
| flags: main | |
| env_vars: OS,PYTHON | |
| name: codecov-umbrella | |
| fail_ci_if_error: true |