diff --git a/.github/workflows/flask.yml b/.github/workflows/flask.yml new file mode 100644 index 0000000..e23ea47 --- /dev/null +++ b/.github/workflows/flask.yml @@ -0,0 +1,34 @@ +name: Flask + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install coveralls + - name: Set up project + run: | + python manage.py db upgrade + - name: Run Tests + run: | + coverage run manage.py test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1117312..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: python -python: - - '3.6' -install: - - pip install -r requirements.txt - - pip install coveralls -before_script: - - python manage.py db upgrade -script: coverage run manage.py test \ No newline at end of file diff --git a/README.md b/README.md index dd62511..9129e91 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Airtng App: Part 1 - Workflow Automation with Python | Flask > We are currently in the process of updating this sample template. If you are encountering any issues with the sample, please open an issue at [github.com/twilio-labs/code-exchange/issues](https://github.com/twilio-labs/code-exchange/issues) and we'll try to help you. -[![Build Status](https://travis-ci.org/TwilioDevEd/airtng-flask.svg?branch=master)](https://travis-ci.org/TwilioDevEd/airtng-flask) +![](https://github.com/TwilioDevEd/airtng-flask/workflows/Flask/badge.svg) Learn how to automate your workflow using Twilio's REST API and Twilio SMS. This example app is a vacation rental site, where the host can confirm a reservation via SMS.