File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build, Lint, Test
2
+ on : [push, pull_request, workflow_call]
3
+ jobs :
4
+ build :
5
+ runs-on : ubuntu-22.04
6
+ steps :
7
+ - uses : actions/checkout@v4
8
+ - uses : actions/setup-python@v4
9
+ with :
10
+ python-version : 3.12
11
+
12
+ - name : Run image
13
+ uses : abatilo/actions-poetry@v2
14
+ with :
15
+ poetry-version : 1.8.3
16
+
17
+ - name : Setup a local virtual environment (if no poetry.toml file)
18
+ run : |
19
+ poetry config virtualenvs.create true --local
20
+ poetry config virtualenvs.in-project true --local
21
+
22
+ - uses : actions/cache@v3
23
+ name : Define a cache for the virtual environment based on the dependencies lock file
24
+ with :
25
+ path : ./.venv
26
+ key : venv-${{ hashFiles('poetry.lock') }}
27
+
28
+ - name : Install
29
+ run : make install
30
+ - name : Lint
31
+ run : make lint
32
+ - name : Type
33
+ run : make type
34
+ - name : Test
35
+ run : make test
You can’t perform that action at this time.
0 commit comments