We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c258948 commit 8a7ca72Copy full SHA for 8a7ca72
.github/workflows/build.yml
@@ -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
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
31
+ poetry run pytest
32
33
+ - name: Build
34
35
36
+ poetry build
37
38
+ - uses: actions/upload-artifact@v4
39
40
+ path: ./dist
0 commit comments