durandtibo/coola

View on GitHub
.github/workflows/cyclic-imports.yaml

Summary

Maintainability
Test Coverage
name: Cyclic Imports
on:
  workflow_call:
  workflow_dispatch:  # to trigger manually

jobs:
  cyclic-import:
    runs-on: ubuntu-latest
    timeout-minutes: 10

    steps:
      - uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.12'

      - name: Install Poetry
        uses: snok/install-poetry@v1

      - name: Set environment variable
        run: |
          echo $(poetry run poetry env info --path)/bin >> $GITHUB_PATH

      - name: Install packages
        run: |
          make install-all

      - name: Show installed packages
        run: |
          poetry show
          poetry show --tree

      - name: check coola
        run: |
          python -c "import coola"
      - name: check coola.equality
        run: |
          python -c "from coola import equality"
      - name: check coola.equality.comparators
        run: |
          python -c "from coola.equality import comparators"
      - name: check coola.equality.testers
        run: |
          python -c "from coola.equality import testers"
      - name: check coola.formatters
        run: |
          python -c "from coola import formatters"
      - name: check coola.nested
        run: |
          python -c "from coola import nested"
      - name: check coola.random
        run: |
          python -c "from coola import random"
      - name: check coola.reducers
        run: |
          python -c "from coola import reducers"
      - name: check coola.summarizers
        run: |
          python -c "from coola import summarizers"
      - name: check coola.utils
        run: |
          python -c "from coola import utils"