Skip to content

Commit 6c98e2e

Browse files
author
Aman Rusia
committed
Updated workflow and fixed Python compatibility for tests
1 parent 47ea640 commit 6c98e2e

File tree

7 files changed

+510
-4
lines changed

7 files changed

+510
-4
lines changed

.github/workflows/python-tests.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Python Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: [3.10, 3.11, 3.12]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: "${{ matrix.python-version }}"
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install build
27+
pip install .[dev] # Installs dependencies based on pyproject.toml
28+
- name: Run tests
29+
run: |
30+
python -m unittest discover -s tests

.python-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "wcgw"
44
version = "0.0.10"
55
description = "What could go wrong giving full shell access to chatgpt?"
66
readme = "README.md"
7-
requires-python = ">=3.8, <3.13"
7+
requires-python = ">=3.10, <3.13"
88
dependencies = [
99
"openai>=1.46.0",
1010
"mypy>=1.11.2",
@@ -27,7 +27,6 @@ dependencies = [
2727
[project.urls]
2828
Homepage = "https://github.com/rusiaaman/wcgw"
2929

30-
3130
[build-system]
3231
requires = ["hatchling"]
3332
build-backend = "hatchling.build"
@@ -42,4 +41,4 @@ dev-dependencies = [
4241
"types-toml>=0.10.8.20240310",
4342
"autoflake",
4443
"ipython>=8.12.3",
45-
]
44+
]

0 commit comments

Comments
 (0)