Skip to content

Commit

Permalink
Upgrade minimum to Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank authored Apr 17, 2024
1 parent ceef87a commit 1529602
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 48 deletions.
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

0 comments on commit 1529602

Please sign in to comment.