File tree 4 files changed +70
-0
lines changed
4 files changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ <!--
3
+ Please format codes by ruff before pull request.
4
+
5
+ For example:
6
+ $ pip install -r ./requirements_dev.txt
7
+ $ make style
8
+
9
+ To test:
10
+ $ make test
11
+ -->
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : CI
3
+ on :
4
+ push :
5
+ pull_request :
6
+ types :
7
+ - opened
8
+ - synchronize
9
+ - reopened
10
+
11
+ jobs :
12
+ ci :
13
+ strategy :
14
+ matrix :
15
+ python-version : ["3.11"]
16
+ os : [ubuntu-latest]
17
+ runs-on : ${{ matrix.os }}
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ - uses : actions/setup-python@v4
21
+ with :
22
+ python-version : ${{ matrix.python-version }}
23
+
24
+ - name : Create venv
25
+ run : |
26
+ python3 -m venv .venv
27
+
28
+ - name : Load cached venv
29
+ id : cached-poetry-dependencies
30
+ uses : actions/cache@v3
31
+ with :
32
+ path : .venv
33
+ key : venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements_dev.txt') }}
34
+
35
+ - name : Install dependencies
36
+ run : .venv/bin/pip install -r ./requirements_dev.txt
37
+
38
+ - name : Test
39
+ run : |
40
+ . .venv/bin/activate
41
+ make test
Original file line number Diff line number Diff line change
1
+ .PHONY : all
2
+ all :
3
+
4
+ .PHONY : style
5
+ style :
6
+ ruff format --respect-gitignore
7
+
8
+ .PHONY : test_style
9
+ test_style :
10
+ ruff format --respect-gitignore --check
11
+
12
+ .PHONY : test
13
+ test : test_style
14
+
15
+
16
+ .DELETE_ON_ERROR :
17
+ SHELL =/bin/bash
Original file line number Diff line number Diff line change
1
+ ruff==0.3.4
You can’t perform that action at this time.
0 commit comments