Skip to content

Commit 9a49d43

Browse files
added build_lint_test github actions workflow
1 parent e5226ac commit 9a49d43

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build_lint_test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)