-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.23 KB
/
ci.yml
File metadata and controls
53 lines (46 loc) · 1.23 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
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
package: [mcp-forge-core, mcp-forge-aws, mcp-forge-cli]
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package
run: |
pip install -e packages/mcp-forge-core[dev]
if [ "${{ matrix.package }}" != "mcp-forge-core" ]; then
pip install -e packages/${{ matrix.package }}[dev]
fi
- name: Run tests
run: pytest packages/${{ matrix.package }}/tests -v
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
- run: pip install ruff
- run: ruff check packages/