-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 931 Bytes
/
Copy pathpython-app.yml
File metadata and controls
45 lines (35 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Python Application CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
# build and test
build:
# run on ubuntu latest
runs-on: ubuntu-latest
steps:
# checkout repository
- name: Checkout repository
uses: actions/checkout@v3
# set up python 3.11
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
# install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# run app for basic validation
- name: Run app for basic validation
run: |
python app.py &
sleep 10
pkill -f app.py
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}