File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and Publish
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+
7+ # We only deploy on tags and main branch
8+ tags :
9+ # Only run on tags that match the following regex
10+ # This will match tags like v1.0.0, v1.0.1, etc.
11+ - v[0-9]+.[0-9]+.[0-9]+
12+
13+ # Build on pull requests
14+ pull_request :
15+
16+ jobs :
17+ lint :
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ # Checkout the repository
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+
25+ # Set python version to 3.11
26+ - name : set python version
27+ uses : actions/setup-python@v4
28+ with :
29+ python-version : 3.11
30+
31+ # Install Build stuff
32+ - name : Install Dependencies
33+ run : |
34+ pip install poetry \
35+ && poetry config virtualenvs.create false \
36+ && poetry install
37+
38+ # Ruff
39+ - name : Ruff check
40+ run : |
41+ poetry run ruff .
42+
43+ # Mypy
44+ - name : Mypy Check
45+ run : |
46+ poetry run mypy .
Original file line number Diff line number Diff line change 11[tool .poetry ]
2- name = " mistral_client "
2+ name = " mistralai "
33version = " 0.1.0"
44description = " "
55authors = [" Bam4d <bam4d@mistral.ai>" ]
You can’t perform that action at this time.
0 commit comments