-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.37 KB
/
ci.yml
File metadata and controls
54 lines (45 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.13"]
include:
- python-version: "3.9"
sync-extras: "--all-extras --no-extra mcp"
- python-version: "3.10"
sync-extras: "--all-extras"
- python-version: "3.13"
sync-extras: "--all-extras"
env:
STACKONE_API_KEY: ${{ secrets.STACKONE_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Nix
uses: ./.github/actions/setup-nix
- name: Install dependencies
run: nix develop --command uv sync ${{ matrix.sync-extras }}
- name: Run Lint
run: nix develop --command uv run ruff check .
- name: Run Mypy
run: |
if [[ "${{ matrix.python-version }}" == "3.9" ]]; then
nix develop --command uv run mypy stackone_ai --exclude stackone_ai/server.py
else
nix develop --command uv run mypy stackone_ai
fi
- name: Run Tests
run: nix develop --command uv run pytest