Skip to content

Commit 11ebf06

Browse files
committed
Add github action to run 'make check test checkformat'
1 parent cd3b74f commit 11ebf06

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# .github/workflows/ci.yml
2+
name: CI
3+
4+
on:
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
tests:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: make check
15+
run: |
16+
set -euxo pipefail
17+
make check
18+
19+
- name: make test
20+
run: |
21+
set -euxo pipefail
22+
make test
23+
24+
- name: format --check (from make -n format)
25+
shell: bash
26+
run: |
27+
set -euxo pipefail
28+
make checkformat

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ all: venv format check test build
1010
format: venv
1111
.venv/bin/black typeagent test tools
1212

13+
checkformat: venv
14+
.venv/bin/black --check typeagent test tools
15+
1316
.PHONY: check
1417
check: venv
1518
.venv/bin/pyright --pythonpath .venv/bin/python typeagent test tools

0 commit comments

Comments
 (0)