-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 992 Bytes
/
ci.yml
File metadata and controls
49 lines (38 loc) · 992 Bytes
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
# SPDX-License-Identifier: Apache-2.0
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: pytest + ruff + mypy
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Install Python + project (with signing extra for VC-DI tests)
run: uv sync --extra signing
- name: ruff check
run: uv run ruff check .
- name: ruff format --check
run: uv run ruff format --check .
- name: mypy --strict
run: uv run mypy
- name: pytest
env:
FLEXO_RTM_NETWORK_TESTS: ""
FLEXO_TOKEN: ""
run: uv run pytest -q
- name: Parsimony budget gate
run: uv run python ontology/parsimony/build.py