Skip to content

Commit c911159

Browse files
committed
adding some CI
1 parent f2dc426 commit c911159

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poetry]
2-
name = "mistral_client"
2+
name = "mistralai"
33
version = "0.1.0"
44
description = ""
55
authors = ["Bam4d <bam4d@mistral.ai>"]

0 commit comments

Comments
 (0)