Skip to content

Commit bed182a

Browse files
committed
gha pipeline added
1 parent eb8c7b4 commit bed182a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/pipeline.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tech Report API Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'feature**'
8+
delete:
9+
branches:
10+
- 'feature**'
11+
12+
# env:
13+
# PIPELINE_USER_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
14+
15+
jobs:
16+
test:
17+
if: github.event_name == 'push'
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Python 3.10
22+
uses: actions/setup-python@v3
23+
with:
24+
python-version: "3.10"
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
python -m pip install pytest
29+
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
30+
- name: Test with pytest
31+
run: |
32+
python -m pytest -W "ignore"
33+

0 commit comments

Comments
 (0)