Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Four lecture #1

Merged
merged 15 commits into from
Oct 29, 2022
Prev Previous commit
Next Next commit
add ci pipeline
  • Loading branch information
renansantosmendes committed Oct 25, 2022
commit 89f54e631271500c28dead8300ec3c9ef7e27067
36 changes: 36 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: FastAPI-GitHub-Heroku

#env:
# HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
# HEROKU_APP_NAME: ${{ secrets.HEROKU_APP_NAME }}

on:
push:
branches:
- main
- source_code
pull_request:
branches:
- main

jobs:
ci_pipeline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0

- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Test
run: |
python -m pytest test.py