Skip to content

Commit

Permalink
Create debug.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aplowman authored Feb 15, 2025
1 parent 0e44f6e commit 4dab129
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: debug
on:
workflow_dispatch:
inputs:
integration_test_args:
description: "CLI args to pass verbatim to pytest (integration tests)."
required: false
type: string
default: ""
jobs:
test-integration:
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"

runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Setup upterm session
uses: owenthereal/action-upterm@v1

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install and configure poetry
run: |
python -m pip install poetry==${{ env.POETRY_VERSION }}
poetry config virtualenvs.in-project true
poetry config installer.modern-installation false
- name: Cache the virtualenv
uses: actions/cache@v4
with:
path: ./.venv
key: ${{ runner.os }}-test-${{ matrix.python-version }}-venv-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
run: |
poetry install --without dev,pyinstaller
- name: Run tests
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
poetry run hpcflow test --integration ${{ github.event.inputs.integration_test_args }}

0 comments on commit 4dab129

Please sign in to comment.