diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml index 776e72a..9a31f34 100644 --- a/.github/workflows/sanity.yml +++ b/.github/workflows/sanity.yml @@ -8,11 +8,19 @@ on: jobs: sanity: + strategy: + matrix: + python: ["3.10", "3.11", "3.12"] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + - name: Update pip run: python3 -m pip install --upgrade pip @@ -25,6 +33,5 @@ jobs: - name: Check help message run: python3 -m chatdbg --help - - name: Check calling executables directly - run: | - chatdbg --help + - name: Check calling executable directly + run: chatdbg --help diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a9e5033..6311185 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,55 +2,49 @@ name: tests on: push: - branches: [ main ] - + branches: [main] pull_request: - branches: [ main ] - - workflow_dispatch: - + branches: [main] jobs: run-tests: - runs-on: ${{ matrix.os }} - timeout-minutes: 15 strategy: matrix: - os: [ ubuntu-latest, macos-latest ] - python: [ '3.9', '3.10', '3.11', '3.12' ] + os: [ubuntu-latest, macos-latest] + python: ["3.10", "3.11", "3.12"] + + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python }} - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python }} - - - name: Work around arm64 support on MacOS - # https://github.com/actions/virtual-environments/issues/2557 - if: matrix.os == 'macos-latest' - run: sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/* - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - - - name: Build - run: pip -v install -e . - - - name: install test dependencies - run: | - python3 -m pip install pytest pytest-asyncio pytest-forked hypothesis pytest-mock - python3 -m pip install -r test/requirements.txt - python3 -m pip install . - - - name: run tests - env: - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - run: | - python3 -m pytest --forked + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + + - name: Work around arm64 support on MacOS + # https://github.com/actions/virtual-environments/issues/2557 + if: matrix.os == 'macos-latest' + run: sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/* + + - name: Install dependencies + run: python -m pip install --upgrade pip + + - name: Build + run: pip -v install -e . + + - name: install test dependencies + run: | + python3 -m pip install pytest pytest-asyncio pytest-forked hypothesis pytest-mock + python3 -m pip install -r test/requirements.txt + python3 -m pip install . + + - name: run tests + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + run: python3 -m pytest --forked diff --git a/pyproject.toml b/pyproject.toml index dc0b9b8..968f8c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ dependencies = [ ] description = "AI-assisted debugging. Uses AI to answer 'why'." readme = "README.md" -requires-python = ">=3.7" +requires-python = ">=3.10" classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: Apache Software License",