Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/updated_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,25 @@ 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: |
poetry lock
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
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/webtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading