[DOP-27796] Do not hide symlinks with no IO from lineage graph #1211
Workflow file for this run
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: | |
| - develop | |
| pull_request: | |
| branches-ignore: | |
| - master | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| DEFAULT_PYTHON: '3.13' | |
| jobs: | |
| tests: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Start containers | |
| run: | | |
| docker compose -f docker-compose.test.yml down -v --remove-orphans | |
| docker compose -f docker-compose.test.yml up -d --wait --wait-timeout 60 | |
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| - name: Install poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| virtualenvs-create: true | |
| virtualenvs-in-project: true | |
| virtualenvs-path: .venv | |
| - name: Load cached venv | |
| id: cached-poetry-dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: .venv | |
| key: venv-${{ runner.os }}-${{ env.DEFAULT_PYTHON }}-${{ hashFiles('**/poetry.lock') }} | |
| - name: Install dependencies | |
| if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
| run: | | |
| make venv | |
| - name: Run Tests | |
| run: | | |
| mkdir -p reports/ | |
| make test-ci | |
| - name: Test database seed script | |
| run: | | |
| make db-seed-ci | |
| - name: Test remove Partitions | |
| run: | | |
| make db-cleanup-partitions-ci ARGS="dry_run --keep-after $(date --date='yesterday' '+%Y-%m-%d')" | |
| make db-cleanup-partitions-ci ARGS="truncate --keep-after $(date --date='yesterday' '+%Y-%m-%d')" | |
| make db-cleanup-partitions-ci ARGS="detach --keep-after $(date --date='-6month' '+%Y-%m-%d')" | |
| make db-cleanup-partitions-ci ARGS="drop --keep-after $(date --date='yesterday' '+%Y-%m-%d')" | |
| - name: Generate OpenAPI Schema | |
| run: | | |
| make docs-openapi | |
| - name: Dump DB logs on failure | |
| if: failure() | |
| uses: jwalton/gh-docker-logs@v2 | |
| with: | |
| images: postgres | |
| dest: ./logs | |
| - name: Upload Coverage Results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: raw-coverage-${{ env.DEFAULT_PYTHON }} | |
| path: reports/.coverage* | |
| # https://github.com/actions/upload-artifact/issues/602 | |
| include-hidden-files: true | |
| - name: Shutdown containers | |
| if: always() | |
| run: | | |
| docker compose -f docker-compose.test.yml down -v --remove-orphans | |
| - name: Upload DB logs | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: db-logs | |
| path: logs/* | |
| all_done: | |
| name: Tests done | |
| runs-on: ubuntu-latest | |
| if: always() | |
| needs: [tests] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| - name: Upgrade pip | |
| run: python -m pip install --upgrade pip setuptools wheel | |
| - name: Install dependencies | |
| run: pip install -I coverage | |
| - name: Download all raw coverage data | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: coverage-data/ | |
| pattern: raw-coverage-* | |
| - name: Combine Coverage Data | |
| run: | | |
| coverage combine coverage-data/* | |
| coverage xml -o combined_coverage.xml | |
| - name: Check Coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./combined_coverage.xml | |
| fail_ci_if_error: true | |
| plugins: noop | |
| - name: All done | |
| run: echo 1 |