We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49d8409 commit 37312e4Copy full SHA for 37312e4
.github/workflows/ci.yml
@@ -0,0 +1,37 @@
1
+name: CI
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request:
7
8
9
+
10
+jobs:
11
+ lint:
12
+ name: lint
13
+ runs-on: ubuntu-latest
14
+ if: github.repository == 'anthropics/anthropic-sdk-python'
15
16
+ steps:
17
+ - uses: actions/checkout@v3
18
19
+ - name: Install Rye
20
+ run: |
21
+ curl -sSf https://rye-up.com/get | bash
22
+ echo "$HOME/.rye/shims" >> $GITHUB_PATH
23
+ env:
24
+ RYE_VERSION: 0.15.2
25
+ RYE_INSTALL_OPTION: "--yes"
26
27
+ - name: Install dependencies
28
29
+ rye sync --all-features
30
31
+ - name: Run type checking
32
33
+ rye run typecheck
34
35
+ - name: Ensure importable
36
37
+ rye run python -c 'import anthropic'
.python-version
@@ -0,0 +1 @@
+3.9.18
0 commit comments