Update main.yaml #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python application | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# - name: Show Current Dir | |
# run: | | |
# cd | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
# - name: Create a requirements file | |
# run: | | |
# pip freeze > requirements.txt | |
- name: Install Dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Install Gunicorn | |
run: | | |
pip install gunicorn | |
# - name: Install OpenSSL | |
# run: | | |
# sudo apt-get install openssl | |
# - name: Generate SSL Certificates | |
# run: | | |
# openssl req -new -x509 -key key.pem -out cert.pem -days 1095 | |
# - name: Run Tests | |
# run: | | |
# python -m pytest -v | |
- name: Run gunicorn_conf.py | |
run: | | |
gunicorn app:app -c gunicorn_conf.py | |
# - name: run the app | |
# run: | | |
# python app.py | |