Skip to content

Commit 2c99678

Browse files
committed
Merge branch 'kyle/cicd'
2 parents ad14e68 + afa1c00 commit 2c99678

65 files changed

Lines changed: 3164 additions & 1877 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Setup Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.10"
16+
17+
- name: Install Poetry
18+
uses: abatilo/actions-poetry@v4
19+
20+
- name: Setup local virtual environment
21+
run: |
22+
poetry config virtualenvs.create true --local
23+
poetry config virtualenvs.in-project true --local
24+
25+
- name: Setup Poetry cache
26+
uses: actions/cache@v3
27+
with:
28+
path: ./.venv
29+
key: venv-${{ hashFiles('**/poetry.lock') }}
30+
31+
- name: Install dependencies
32+
run: poetry install --with dev
33+
34+
- name: Run Ruff formatter check
35+
run: poetry run ruff format --check .
36+
37+
- name: Run Ruff linter
38+
run: poetry run ruff check .
39+
40+
test:
41+
runs-on: ubuntu-latest
42+
env:
43+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
44+
steps:
45+
- uses: actions/checkout@v4
46+
47+
- name: Setup Python
48+
uses: actions/setup-python@v5
49+
with:
50+
python-version: "3.10"
51+
52+
- name: Install Poetry
53+
uses: abatilo/actions-poetry@v4
54+
55+
- name: Setup local virtual environment
56+
run: |
57+
poetry config virtualenvs.create true --local
58+
poetry config virtualenvs.in-project true --local
59+
60+
- name: Set up Poetry cache
61+
uses: actions/cache@v3
62+
with:
63+
path: ./.venv
64+
key: venv-${{ hashFiles('**/poetry.lock') }}
65+
66+
- name: Install dependencies
67+
run: poetry install --with dev
68+
69+
- name: Run unit tests
70+
run: poetry run pytest tests/unit/**/*.py --import-mode=importlib
71+
72+
- name: Run integration tests
73+
run: poetry run pytest tests/integration

.pre-commit-config.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ repos:
88
- id: ruff
99
args: [--fix]
1010

11-
- repo: https://github.com/pre-commit/mirrors-mypy
12-
rev: "v1.15.0"
13-
hooks:
14-
- id: mypy
15-
additional_dependencies: [types-requests]
11+
# - repo: https://github.com/pre-commit/mirrors-mypy
12+
# rev: "v1.15.0"
13+
# hooks:
14+
# - id: mypy

benchmarks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
1010
The main benchmark script can be run with:
1111
python -m benchmarks.benchmark
12-
"""
12+
"""

0 commit comments

Comments
 (0)