nikitastupin / clairvoyance

Obtain GraphQL API schema even if the introspection is disabled
Apache License 2.0
1.02k stars 92 forks source link

[CD] Make 'tests.yml' workflow more DRY #90

Closed Privat33r-dev closed 1 month ago

Privat33r-dev commented 5 months ago

Currently the following lines are repetitive. It would be nice to make them follow the Do-Not-repeat-Yourself principle by separating them in another action/workflow.

    - uses: actions/checkout@v4
    - name: Install and configure poetry
      run: |
        pipx install poetry
        poetry config virtualenvs.in-project true
    - uses: actions/setup-python@v5
      with:
        python-version: ${{ env.PYTHON_VERSION }}
        cache: 'poetry'
    - name: Setup poetry
      run: poetry install