Skip to content

Commit 8a7ca72

Browse files
committed
chore: build workflow
1 parent c258948 commit 8a7ca72

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
workflow_call:
6+
secrets:
7+
OPENAI_API_KEY:
8+
required: true
9+
ANTHROPIC_API_KEY:
10+
required: true
11+
12+
jobs:
13+
build:
14+
name: Build & Test
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.x"
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install poetry
27+
poetry install
28+
29+
- name: Run tests
30+
run: |
31+
poetry run pytest
32+
33+
- name: Build
34+
run: |
35+
pip install poetry
36+
poetry build
37+
38+
- uses: actions/upload-artifact@v4
39+
with:
40+
path: ./dist

0 commit comments

Comments
 (0)