Skip to content

Commit e8bcafd

Browse files
committed
Add github action for pytest
1 parent d8845df commit e8bcafd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run pytest
2+
3+
on: [push]
4+
5+
jobs:
6+
run_pytest:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Check out
10+
uses: actions/checkout@v4
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.13'
16+
cache: 'pip'
17+
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install -r requirements.txt
22+
23+
- name: Generate Python code
24+
run: |
25+
python -m grpc_tools.protoc -Iprotos/ --python_out=src/protobuf/ --grpc_python_out=src/protobuf/ protos/file_service.proto
26+
27+
- name: Run tests
28+
run: |
29+
pytest
30+

0 commit comments

Comments
 (0)