Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade minimum to Python 3.10 -- IPython requires >=3.10 #41

Merged
merged 4 commits into from
Apr 17, 2024
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
13 changes: 10 additions & 3 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
82 changes: 38 additions & 44 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down