Skip to content

Commit

Permalink
Merge pull request #2 from jlowin/add-tests
Browse files Browse the repository at this point in the history
Add github workflows
  • Loading branch information
jlowin authored Nov 30, 2024
2 parents 67ad344 + 6b257f4 commit 56481d0
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/ai-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
context-files:
- README.md
23 changes: 23 additions & 0 deletions .github/workflows/ai-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: AI Labeler

on:
issues:
types: [opened, reopened]
issue_comment:
types: [created]
pull_request:
types: [opened, reopened]

jobs:
ai-labeler:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: jlowin/[email protected]
with:
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
controlflow-llm-model: openai/gpt-4o-mini
35 changes: 35 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run tests

env:
# enable colored output
PY_COLORS: 1

on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
run_tests:
name: Run tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Set up Python
run: uv python install 3.11

- name: Install FastMCP
run: uv sync --all-extras --dev

- name: Run tests
run: uv run pytest -vv
if: ${{ !(github.event.pull_request.head.repo.fork) }}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dev = [
"copychat>=0.5.2",
"ipython>=8.12.3",
"pdbpp>=0.10.3",
"pytest-xdist>=3.6.1",
"pytest>=8.3.3",
"pytest-asyncio>=0.23.5",
]
Expand Down
26 changes: 25 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 56481d0

Please sign in to comment.