JeffYang52415 commited on
Commit
54b075d
·
unverified ·
1 Parent(s): acfee14

ci: add github action

Browse files
Files changed (1) hide show
  1. .github/workflows/ci.yml +32 -0
.github/workflows/ci.yml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - name: Set up Python 3.12
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.12"
19
+ cache: "pip"
20
+
21
+ - name: Install Poetry
22
+ run: |
23
+ pipx install poetry
24
+
25
+ - name: Install dependencies
26
+ run: poetry install
27
+
28
+ - name: Run pre-commit hooks
29
+ uses: pre-commit/[email protected]
30
+
31
+ - name: Run tests
32
+ run: poetry run pytest