diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9131558..4754823 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,23 +49,26 @@ jobs: USE_POETRY: "${{ (((github.event_name == 'pull_request') || (github.event_name == 'push')) && (inputs.trigger != 'external')) || ((inputs.poetry == true) && ((github.event_name == 'workflow_dispatch') || (inputs.trigger == 'external'))) }}" run: echo "USE_POETRY=$USE_POETRY" >> "$GITHUB_OUTPUT" + - name: Install poetry + if: ${{ steps.decide.outputs.USE_POETRY == 'true' }} + shell: bash + run: pipx install poetry==2.1.4 + - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Set up Poetry - if: ${{ steps.decide.outputs.USE_POETRY == 'true' }} - uses: abatilo/actions-poetry@v3 - with: - poetry-version: "2.1.4" - - name: Install dependencies with Poetry if: ${{ steps.decide.outputs.USE_POETRY == 'true' }} run: | poetry install --with test --all-extras poetry add git+https://github.com/AstarVienna/ScopeSim_Data.git + - name: Check Python version + if: ${{ steps.decide.outputs.USE_POETRY == 'true' }} + run: poetry run python -V >> "$GITHUB_STEP_SUMMARY" + - name: Run Pytest with Poetry if: ${{ steps.decide.outputs.USE_POETRY == 'true' }} run: poetry run pytest -m "not webtest" --cov --cov-report=xml diff --git a/.github/workflows/updated_tests.yml b/.github/workflows/updated_tests.yml index d699bf1..ea019b2 100644 --- a/.github/workflows/updated_tests.yml +++ b/.github/workflows/updated_tests.yml @@ -28,16 +28,15 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install poetry + shell: bash + run: pipx install poetry==2.1.4 + - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Set up Poetry - uses: abatilo/actions-poetry@v3 - with: - poetry-version: "2.1.4" - - name: Install dependencies shell: bash run: | @@ -45,6 +44,9 @@ jobs: poetry install --with test --all-extras poetry add git+https://github.com/AstarVienna/ScopeSim_Data.git + - name: Check Python version + run: poetry run python -V >> "$GITHUB_STEP_SUMMARY" + - name: Update dependencies shell: bash run: poetry update | tee -a $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/webtests.yml b/.github/workflows/webtests.yml index 7b9ac83..5d0d421 100644 --- a/.github/workflows/webtests.yml +++ b/.github/workflows/webtests.yml @@ -41,23 +41,26 @@ jobs: USE_POETRY: "${{ (((github.event_name == 'pull_request') || (github.event_name == 'push')) && (inputs.trigger != 'external')) || ((inputs.poetry == true) && ((github.event_name == 'workflow_dispatch') || (inputs.trigger == 'external'))) }}" run: echo "USE_POETRY=$USE_POETRY" >> "$GITHUB_OUTPUT" + - name: Install poetry + if: ${{ steps.decide.outputs.USE_POETRY == 'true' }} + shell: bash + run: pipx install poetry==2.1.4 + - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Set up Poetry - if: ${{ steps.decide.outputs.USE_POETRY == 'true' }} - uses: abatilo/actions-poetry@v3 - with: - poetry-version: "2.1.4" - - name: Install dependencies with Poetry if: ${{ steps.decide.outputs.USE_POETRY == 'true' }} run: | poetry install --with test --all-extras poetry add git+https://github.com/AstarVienna/ScopeSim_Data.git + - name: Check Python version + if: ${{ steps.decide.outputs.USE_POETRY == 'true' }} + run: poetry run python -V >> "$GITHUB_STEP_SUMMARY" + - name: Run Pytest with Poetry if: ${{ steps.decide.outputs.USE_POETRY == 'true' }} run: poetry run pytest -m "webtest" --cov --cov-report=xml